This is a tiny machine learning demo which covers the relevant necessary steps included: raw dataset loading, data preprocessing, targeting params calculation, etc. In the source code we show the necessary steps for calculating f1-score of Tuesdays datas. The similar mindset is also transferrable if there's few more target values to get. Feel free to take and enjoy!
- dataset.psv: This is the dummy dataset which concludes the necessary fields. Each date's data covered as a single record in the dataset. In following we also have the true value of targeting y and it's estimation value like y_hat.
- main.py: This file is the main one to run for the overall program. The codes in main.py show the overall processes from higher view. We can see the main steps showing the dataset loading, data proprecessing, f1-score calculation and output results. Nomally there would be more insteresting if some following visualisations involved which supported by library like matplotlib but unfortunatly it's not included in this repository for the moment. Luckily there're fairly enorgh public resources over the internet showing how to achieve these goals.
- solution.py: This one covers the specific implemements of related main steps which running in the
main.py
.
- python
- numpy
- csv
- datetime