Skip to content

Instantly share code, notes, and snippets.

@RossSong
RossSong / fold_ideas.md
Created March 28, 2021 04:42 — forked from CMCDragonkai/fold_ideas.md
Haskell: Foldl vs Foldr

Foldl vs Foldr

I like to call foldr as "fold from the right", while foldl is "fold from the left".

@RossSong
RossSong / classifier_from_little_data_script_3.py
Created August 16, 2017 12:34 — forked from fchollet/classifier_from_little_data_script_3.py
Fine-tuning a Keras model. Updated to the Keras 2.0 API.
'''This script goes along the blog post
"Building powerful image classification models using very little data"
from blog.keras.io.
It uses data that can be downloaded at:
https://www.kaggle.com/c/dogs-vs-cats/data
In our setup, we:
- created a data/ folder
- created train/ and validation/ subfolders inside data/
- created cats/ and dogs/ subfolders inside train/ and validation/
- put the cat pictures index 0-999 in data/train/cats