jonhassall / python-machine-learning-simple

Simple temperature/humidity machine learning classification with Python scikit-learn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Machine Learning with Python SciKit-learn

A simple script that trains from a list of temperature/humidity classifications, and is able to assess if an environment is comfortable or uncomfortable.

Instructions

Install SciKit and make a virtual environment:

python3 -m venv sklearn-venv
sklearn-venv\Scripts\activate
pip install -U scikit-learn
pip install panda
pip install xlrd

Run the script:

python3 temperatures-classifier-random-forest.py

Example output:

Temperatures classifier
Training from spreadsheet
Training complete

Enter a temperature and humidity to check if it is comfortable using this trained model:
Please enter a temperature in celcius:
20
Please enter a humidity in celcius:
44
Checking if 20.0C at 44.0 humidity is comfortable:
['Yes']
End of script

About

Simple temperature/humidity machine learning classification with Python scikit-learn


Languages

Language:Python 100.0%