Skip to content

Machine learning experiments

Four small, independent ML projects in Python and Keras: pneumonia detection with VGG16 (0.95 recall), Nike stock LSTMs, rain prediction (92 % accuracy) and MNIST digits.

Sole author

archived

  • Python
  • TensorFlow
  • Keras
  • Jupyter
  • Pandas
  • Pneumonia detection with VGG16 transfer learning: accuracy 0.87, recall 0.95, F1 0.90
  • Compared 8 LSTM models with different hyperparameters for Nike stock forecasting
  • Rain-tomorrow classifier reaching 92 % accuracy, with notes on class balancing
  • MNIST digit classifier: Flatten, Dense 128, Dense 32, softmax over 10 classes

Context

Four independent experiments I built on my own, each in its own repository and Jupyter notebook. They cover images, time series, tabular data and a classic benchmark.

What I did

Pneumonia prediction

Transfer learning with VGG16 on chest X-rays resized to 32x32x3. The model with frozen layers reached accuracy 0.87, precision 0.85, recall 0.95 and F1 0.90. The fine-tuned model overfit: its metrics were similar (accuracy 0.88, F1 0.90), but the README concludes it is too complex for the amount of data. Repository

Nike stock forecasting

A univariate, one-step LSTM forecast of Nike’s stock price. I built 8 models, changing their hyperparameters, to compare them and pick the best. Repository

Rain tomorrow prediction

A classifier that predicts whether it will rain the next day from the day’s features. It reached 92 % accuracy. The notes point out that balancing the data (more rainy days, or fewer dry ones) could improve it. Repository

MNIST digit recognition

A simple network: Flatten, Dense 128 (ReLU), Dense 32 (ReLU) and a softmax output of 10 classes. Repository

Technical details

All four use Python with TensorFlow/Keras and Pandas in Jupyter notebooks. The recurring points are transfer learning with frozen versus fine-tuned layers, hyperparameter comparison, and the effect of class imbalance.

Result

Small, honest experiments rather than production models. The READMEs say so too: the metrics could be improved by tuning hyperparameters, adding layers or balancing the data.

Type to search