X-DataInitiative / tick

Module for statistical learning, with a particular emphasis on time-dependent modelling
https://x-datainitiative.github.io/tick/
BSD 3-Clause "New" or "Revised" License
486 stars 105 forks source link

Problem with plot module #289

Closed aguilloux closed 5 years ago

aguilloux commented 6 years ago

Hi ! here is the issue. Best Agathe

In [1]: from tick import plot

ImportError Traceback (most recent call last)

in () ----> 1 from tick import plot ~/anaconda3/lib/python3.6/site-packages/tick/plot/__init__.py in () 8 plot_basis_kernels, plot_hawkes_baseline_and_kernels 9 from .plot_timefunction import plot_timefunction ---> 10 from .plot_point_processes import plot_point_process 11 12 ~/anaconda3/lib/python3.6/site-packages/tick/plot/plot_point_processes.py in () 4 import numpy as np 5 ----> 6 from tick.hawkes.simulation.base import SimuPointProcess 7 8 ~/anaconda3/lib/python3.6/site-packages/tick/hawkes/__init__.py in () 11 HawkesKernelSumExp, HawkesKernelTimeFunc 12 ) ---> 13 from .inference import ( 14 HawkesADM4, HawkesExpKern, HawkesSumExpKern, HawkesBasisKernels, 15 HawkesConditionalLaw, HawkesEM, HawkesSumGaussians, HawkesCumulantMatching ~/anaconda3/lib/python3.6/site-packages/tick/hawkes/inference/__init__.py in () 1 # License: BSD 3 clause 2 ----> 3 from .hawkes_adm4 import HawkesADM4 4 from .hawkes_basis_kernels import HawkesBasisKernels 5 from .hawkes_conditional_law import HawkesConditionalLaw ~/anaconda3/lib/python3.6/site-packages/tick/hawkes/inference/hawkes_adm4.py in () 4 5 from tick.hawkes import ModelHawkesExpKernLogLik, SimuHawkesExpKernels ----> 6 from tick.hawkes.inference.base import LearnerHawkesNoParam 7 from tick.hawkes.inference.build.hawkes_inference import ( 8 HawkesADM4 as _HawkesADM4 ~/anaconda3/lib/python3.6/site-packages/tick/hawkes/inference/base/__init__.py in () 3 4 from .learner_hawkes_noparam import LearnerHawkesNoParam ----> 5 from .learner_hawkes_param import LearnerHawkesParametric ~/anaconda3/lib/python3.6/site-packages/tick/hawkes/inference/base/learner_hawkes_param.py in () 9 from tick.base_model import ModelLipschitz 10 from tick.hawkes import SimuHawkes ---> 11 from tick.plot import plot_point_process 12 from tick.prox import ProxElasticNet, ProxL1, ProxL2Sq, ProxPositive 13 from tick.solver import AGD, GD, SGD, SVRG, BFGS ImportError: cannot import name 'plot_point_process'
PhilipDeegan commented 6 years ago

I think this is already fixed https://github.com/X-DataInitiative/tick/issues/172 perhaps run

python3 -m pip install tick --upgrade

I think we released the fix too

PhilipDeegan commented 6 years ago

Oh it would seem we released before this was fixed - 0.5.0 will have the fix - for now you can build from source if you like

PhilipDeegan commented 6 years ago

there's a few problems with 0.4.0 - we could release now @stephanegaiffas @Mbompr

thoughts?

stephanegaiffas commented 6 years ago

Yes, we really need to realease a new version

PhilipDeegan commented 6 years ago

https://pypi.org/project/tick/#history

0.4.x? where 1 < x < 9

Mbompr commented 6 years ago

It could even be 0.5.

stephanegaiffas commented 6 years ago

No no 0.5 !!!

Le 5 octobre 2018 à 14:10:47, Martin (notifications@github.com) a écrit:

It could even be 0.5.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/X-DataInitiative/tick/issues/289#issuecomment-427343567, or mute the thread https://github.com/notifications/unsubscribe-auth/ADFrfNWAAGEvJG2U9_en91V3sBaj2jWhks5uh0xHgaJpZM4W3NAL .

PhilipDeegan commented 5 years ago

this should be resolved now

please run pip install tick --upgrade