Comments (7)
me too
from course-v3.
I found I commented the line '#.filter_missing_y()', it will get right.
I think this notebook use old version fastai library.
from course-v3.
ah yeah I note that the latest notebook has that line removed as well and I have tested now and it does make the difference
from course-v3.
@Data-drone, @JerryLuYujie,
When I run the second cell in Classifier
data_clas = (TextList.from_folder(path, vocab=data_lm.vocab)
#grab all the text files in path
.split_by_folder(valid='test')
#split by train and valid folder (that only keeps 'train' and 'test' so no need to filter)
.label_from_folder(classes=['neg', 'pos'])
#label them all with their folders
.databunch(bs=bs))
data_clas.save('tmp_clas')
I get this error:
Exception: Your validation data contains a label that isn't present in the training set, please fix your data.
KeyError Traceback (most recent call last)
~/Documents/fastai/courses/v3_dl1/fastai/data_block.py in process_one(self, item)
281 def process_one(self,item):
--> 282 try: return self.c2i[item] if item is not None else None
283 except:
KeyError: 'unsup'
Do you see the same?
from course-v3.
@shirishr I had get the same error as your's. Have you solved it?
Env:
ubuntu18.04
python3.7
fastai 1.0.38
from course-v3.
Just remove the unsub directory from train to some other outside location temporarily. This way train and test both have pos and neg only. Then that error goes away.
from course-v3.
@shirishr thanks.
from course-v3.
Related Issues (20)
- Update `start_colab.html`
- Dead links HOT 2
- Getting Error "The command '/bin/sh -c python app/server.py' returned a non-zero code: 1" HOT 2
- /usr/local/lib/python3.6/dist-packages/torch/nn/functional.py:2854: UserWarning: The default behavior for interpolate/upsample with float scale_factor will change in 1.6.0 to align with other frameworks/libraries, and use scale_factor directly, instead of relying on the computed output size. If you wish to keep the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. warnings.warn("The default behavior for interpolate/upsample with float scale_factor will change "
- Google Colab Install error HOT 2
- writing config
- problem in notebook 12c_ulmfit HOT 1
- Error while building fastprogress
- MCDropoutCallback Attribute Error: model
- deeplearning.net is down; datasets unreachable HOT 2
- Keep-Alive-Actions
- Keep-Alive-Actions
- Keep-Alive-Actions
- seems like the code is inconsistent with latest fastai HOT 1
- nb2 06_cnn_cuda_hooks_init.ipynb plotting errors
- not able to show predictions for COCO like dataset for pascal.ipynb notebook
- About Lesson 2
- How to get values for number of true positives, false positives and false negatives for object detection evaluation in pascal.ipynb notebook
- AttributeError: 'RecordOnCPU' object has no attribute 'input'?
- Hi HOT 1
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 course-v3.