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

Error in example OnlineNNClassifier in docs/examples/demo.ipynb using net='default' #29

Open
cleitonmoya opened this issue Apr 9, 2024 · 0 comments

Comments

@cleitonmoya
Copy link

In the doc example demo.ipynb, the parameter net is initizlized with the string 'default':

cpd = OnlineNNClassifier(net='default', scaler="default", metric="KL_sym",
                         periods=1, window_size=1, lag_size=100, step=1, 
                         n_epochs=10, lr=0.1, lam=0.0001, optimizer="Adam")

which causes the folloing error when executing:

File ~\miniconda3\envs\cpt\Lib\site-packages\roerich\change_point\onnc.py:315 in predict
self._init_network(X_auto.shape[1])

File ~\miniconda3\envs\cpt\Lib\site-packages\roerich\change_point\onnc.py:176 in _init_network
self.net = self.base_net(n_inputs)

TypeError: 'str' object is not callable.

Using net='auto', it works.

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

1 participant