retentioneering / retentioneering-tools

Retentioneering: product analytics, data-driven CJM optimization, marketing analytics, web analytics, transaction analytics, graph visualization, process mining, and behavioral segmentation in Python. Predictive analytics over clickstream, AB tests, machine learning, and Markov Chain simulations.
https://doc.retentioneering.com/stable/doc/index.html
Other
798 stars 122 forks source link

AttributeError: 'RetentioneeringDataset' object has no attribute 'plot_graph' #45

Closed StijnVanRijssel closed 1 year ago

StijnVanRijssel commented 3 years ago

The tutorial notebook (Google Colab) returns the error above when running the following code:

data.rete.plot_graph(norm_type=None,
                     weight_col=None,
                     thresh=250)
bilousoleksandr commented 3 years ago

I've the same problem in Google Colab and in JupiterLab on personal machine.

denmak commented 3 years ago

Yes, looks like there is something wrong with the code in example, probably something is missing...

denmak commented 3 years ago

OK, solution is to downgrade version of the library, to 2.0.0 instead latest version 2.0.2 which pip3 is installing by default.

SiberianPM commented 3 years ago

How do I downgrade it to 2.0.0 so I can use it in Google Colab?

izdi commented 2 years ago

AttributeError: 'RetentioneeringDataset' object has no attribute 'extract_features'

bsenst commented 1 year ago

OK, solution is to downgrade version of the library, to 2.0.0 instead latest version 2.0.2 which pip3 is installing by default.

!pip3 uninstall retentioneering !pip3 install retentioneering==2.0.0

schang3-gdata commented 1 year ago

I had the same problem, and reinstalling did not fix the issue. My environment is: Python 3.8.5 (default, Sep 4 2020, 07:30:14) [GCC 7.3.0] :: Anaconda, Inc. on linux

And I already installed retentioneering-2.0.0 based on the steps above.

The code I tried to run is straight from the quick start data.rete.plot_graph(norm_type='full', weight_col='user_id', thresh=0.06, targets = {'payment_done':'green', 'lost':'red'})

--- Edit: Added the error code below:


AttributeError Traceback (most recent call last)

in ----> 1 data.rete.plot_graph(norm_type='full', 2 weight_col='user_id', 3 thresh=0.06, 4 targets = {'payment_done':'green', 5 'lost':'red'}) AttributeError: 'RetentioneeringDataset' object has no attribute 'plot_graph'
ChernyshovAnton commented 1 year ago

At the end of April 2023, we will be moving to the version 3 of the library. You can use pip to install packages into your beta version: pip install retentioneering --pre Documentation on the Transition Graph tool is available for version 3: User guide API Reference This problem is not relevant in the new major version.