Code and exercises from Google´s Machine Learning Crash Course
Directories:
- data: Contains training and test data for the examples
- exercises: Contains all programming exercises of the course
- functions: Python package containing code that is reusable across the examples.
- Load data as pandas
DataFrame
- Define the input features as pandas
Series
- Define the targets as pandas
Series
- Define an optimizer from
tensorflow.train
to reduce loss - Define the type of the model as
tf.estimator
- Define the input function that provides de estimator with a tuple of features and labels
- Train the model
- Make Predictions
- Compute loss using
tf.metrics
orsklearn.metrics
helper functions
- Analyse distribution to find outliers
- Use
Series.apply
to replace or cut outliers out - Repeat steps 7 - 9 from above
- Load a train data set
- Load a validation data set
- Train the model with the train set and check the loss against the validation set
- Load a test data set
- Check the loss against the test set and not validation set