Comments (3)
This also seems to have affected the next lesson. Version 13 of https://www.kaggle.com/dansbecker/data-augmentation/ (the most recent version as I write this).
Do changes on the GitHub repository make it onto Kaggle? I would be happy to fork the repo, add the change and make a pull request.
from learntools.
I am also facing similar issue. Did you get any solution for this?
from learntools.
I guess the directories were edited and they are correct now. Still I get a crash in the end.
logs
Found 220 images belonging to 2 classes.
Found 217 images belonging to 2 classes.
3/22 [===>..........................] - ETA: 1s - loss: 0.2108 - acc: 0.9667
/opt/conda/lib/python3.6/site-packages/keras_preprocessing/image/image_data_generator.py:699: UserWarning: This ImageDataGenerator specifies `featurewise_center`, but it hasn't been fit on any training data. Fit it first by calling `.fit(numpy_data)`.
warnings.warn('This ImageDataGenerator specifies '
7/7 [==============================] - 1s 129ms/step - loss: 0.1463 - acc: 0.9493
22/22 [==============================] - 2s 90ms/step - loss: 0.1554 - acc: 0.9455 - val_loss: 0.1463 - val_acc: 0.9493
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-10-17ece9deb558> in <module>()
23 validation_steps=1)
24
---> 25 step_4.check()
/opt/conda/lib/python3.6/site-packages/learntools/core/problem_view.py in wrapped(self, *args, **kwargs)
22 def wrapped(self, *args, **kwargs):
23 self.interactions[method.__name__] += 1
---> 24 return method(self, *args, **kwargs)
25 return wrapped
26
/opt/conda/lib/python3.6/site-packages/learntools/core/problem_view.py in wrapped(*args, **kwargs)
13 @functools.wraps(fn)
14 def wrapped(*args, **kwargs):
---> 15 res = fn(*args, **kwargs)
16 display(res)
17 # Don't propagate the return to avoid double printing.
/opt/conda/lib/python3.6/site-packages/learntools/core/problem_view.py in check(self)
81 args = ()
82 self.problem.check_whether_attempted(*args)
---> 83 self.problem.check(*args)
84 except NotAttempted as e:
85 self._track_check(tracking.OutcomeType.UNATTEMPTED)
/opt/conda/lib/python3.6/site-packages/learntools/deep_learning/exercise_4.py in check(self, fit_stats)
55 _hint = "To get steps_per_epoch, divide the number of images by the batch size."
56 def check(self, fit_stats):
---> 57 their_val_dir = fit_stats.validation_data.directory
58 their_val_loss = fit_stats.history['val_loss'][0]
59 their_num_steps = fit_stats.params['steps']
AttributeError: 'NoneType' object has no attribute 'directory'
from learntools.
Related Issues (20)
- Error in solution in Pandas tutorial
- NLP Exercise, step 5, solution code fails .check()
- Wrong assert descriptions in ex2 of Intermediate Machine Learning Course
- Deprecation warning in `prepare_push.py`
- Typo in pandas tutorial 1? HOT 1
- Issue with Data Viz ex 3
- Kaggle
- In Machine Learning Explainability Solution Is Wrong? HOT 2
- [Feature Engineering] Competition submission instructions out of date
- Count of Aces is wrong when total=21 HOT 1
- k-fold CV vs static test split
- python HOT 2
- dataviz course uses deprecated distplot module HOT 1
- Trouble running Exercise: Time series as Features HOT 5
- [Exercise: Categorical Variables] FutureWarning: Feature names only support names that are all strings
- --
- Type Error in Ex 5 of Intro to SQL HOT 2
- SQL Intro Course Exercise 3 not being set up HOT 5
- Bug in make_leads function
- "Frequency" used in place of "phase" in Seasonality tutorial
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 learntools.