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

Update fast-ai #6

Open
jorgerodpen opened this issue Nov 30, 2021 · 1 comment
Open

Update fast-ai #6

jorgerodpen opened this issue Nov 30, 2021 · 1 comment

Comments

@jorgerodpen
Copy link

jorgerodpen commented Nov 30, 2021

I was trying to use the AR-Net for one of my project when I came up with the following error:

`ValueError Traceback (most recent call last)
in
----> 1 m.fit(deltas)

~/opt/anaconda3/lib/python3.8/site-packages/arnet/ar_net.py in fit(self, series, plot)
217 self.make_datasets(series)
218 self.create_learner()
--> 219 self.fit_one_cycle(plot=plot)
220 return self
221

~/opt/anaconda3/lib/python3.8/site-packages/arnet/ar_net.py in fit_one_cycle(self, n_epoch, lr, cycles, plot)
201
202 if lr is None:
--> 203 self.find_lr(plot=plot)
204 lr = self.lr
205 for i in range(0, cycles):

~/opt/anaconda3/lib/python3.8/site-packages/arnet/ar_net.py in find_lr(self, plot)
187 if self.learn is None:
188 raise ValueError("create learner first.")
--> 189 lr_at_min, lr_steep = self.learn.lr_find(start_lr=1e-6, end_lr=10, num_it=300, show_plot=plot)
190 if plot:
191 plt.show()

ValueError: not enough values to unpack (expected 2, got 1)`

Apparently the Fast-AI functionality was changed: https://forums.fast.ai/t/error-in-lr-find/89968

So the code requires a small update so that the AR-Net can work.

@Rahul664
Copy link

Rahul664 commented Dec 15, 2021

What's the solution for this issue? Or how to correct it. I am facing this same issue.

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