I can help you with this task at discord https://discord.gg/Jgutu2w .
Stack overflow ain't too good to ask as many questions in a single thread. Please reconsider splitting your question into more simple questions each having a single thread.
Your question is quite specific, so I doubt you will get a response.
Django is kinda to powerful for this task, but I personally do not know other solution.
https://docs.djangoproject.com/en/2.1/
https://www.youtube.com/watch?v=n-FTlQ7Djqc&list=PL4cUxeGkcC9ib4HsrXEYpQnTOTZE1x0uc
First, how do I make a website so that a user can input the snow and temperature
pip install django
django-admin startproject weatherpredictor
cd weatherpredictor
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
model.py
from django.db import models
class WeatherStateModel(models.Model):
WEATHER_OPTION = (
('N', 'Bad weather'),
('B', 'Good weather'),
('M', 'Meh weather'),
)
SNOW_OPTION = (
(2, 'A lot snow'),
(1, 'Not that much'),
(0, 'No snow'),
)
weather = models.CharField(max_length=1, choices=WEATHER_OPTION)
temperature= models.IntegerField()
snow = models.IntegerField(choices=SNOW_OPTION)
urls.py
from django.urls import path
from . import views
app_name = 'weatherpredictor'
urlpatterns = [
path('',
views.predictweather.as_view(), name='predictweather'),
]
views.py
from .models import WeatherStateModel
from django.views.generic import CreateView
class leave_feedback(CreateView):
model = WeatherStateModel
fields = ['weather', 'temperature', 'snow']
success_url = '/'
in templates/weatherpredictor/weatherstatemodel_form.html
<form enctype="multipart/form-data" action="" method="post">
{% csrf_token %} {{ form }} <input type="submit" value="Save" />
</form>
The user clicks a button, the classifier (which is in python) can spit out a response?
CANT HELP WITHOUT ML CODE
Second, How do I save the classifier so that the model doesn’t have to be trained every time?
Depends on which format you keep classifier, what module do you import, etc.
CANT HELP WITHOUT ML CODE