Comments (3)
Hej there,
Could you give us some more details on the notebook and where exactly you are getting this error?
Best regards
from norbert.
Hi, apologies, I got that running. I have another issue though --
I am trying to upgrade the notebooks to FastAI version 2.0 and specifically the: Task1_F_NFR_classification.ipynb and its predicting all the rows as 1. Do you have any idea how it could have happened? My code is present: https://colab.research.google.com/drive/1GHDCCZlAvliXq1c-M6V36l4yzsFx2TSl?usp=sharing
I did change the predictor class as follows:
from torch import IntTensor
class Predictor:
def init(self, classifier):
self.classifier = classifier
self.classes = [0, 1]
def predict(self, text):
prediction = self.classifier.predict(text)
prediction_class = prediction[1]
return IntTensor.item(np.argmax(prediction_class))
- In the config I changed moms to - moms=(0.8, 0.7, 0.01)
Any help is greatly appreciated!
from norbert.
Hej, sorry for the late response...
We've looked into your adaptation, but couldn't find any issues ourselves. Thus, I have to admit that we cannot help you with this migration problem, sorry. We are still running it on FastAI 1...
Best regards
from norbert.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from norbert.