Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: __init__() got an unexpected keyword argument 'add_noise_prob' #17

Open
jmrichardson opened this issue Feb 28, 2021 · 2 comments

Comments

@jmrichardson
Copy link

Hi, I am getting this error when running this code:

from gendis.genetic import GeneticExtractor
genetic_extractor = GeneticExtractor(population_size=50, iterations=25, verbose=False,
                                     normed=False, add_noise_prob=0.3, add_shapelet_prob=0.3,
                                     wait=10, plot='notebook', remove_shapelet_prob=0.3,
                                     crossover_prob=0.66, n_jobs=4, max_len=len(X_train_pyts) // 2)

Traceback (most recent call last):
File "C:\Users\john\AppData\Roaming\Python\Python37\site-packages\IPython\core\interactiveshell.py", line 3418, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 5, in
crossover_prob=0.66, n_jobs=4, max_len=len(X_train_pyts) // 2)
TypeError: init() got an unexpected keyword argument 'add_noise_prob'

I installed by clone method. Thanks for the help

@GillesVandewiele
Copy link
Collaborator

Hi @jmrichardson

Sorry for my late reply, I was on holidays. It seems like the documentation is outdated and that some of the keywords have been renamed, my apologies for that. You can find the latest version of the constructor here: https://github.com/IBCNServices/GENDIS/blob/master/gendis/genetic.py#L143

I will update the documentation in the nearby future!

Let me know if you have any further issues.

@jmrichardson
Copy link
Author

Thank you and appreciate the work here. Will let you know if I run into any issues. Thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants