Skip to content
Snippets Groups Projects
Commit c824b92a authored by raoul.dupuis's avatar raoul.dupuis
Browse files

add Dockerfile

parent 3c333a30
No related branches found
No related tags found
No related merge requests found
FROM python:3.10
ADD /app/ .
RUN pip install -r requirements.txt
CMD ["python", "main.py"]
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
File moved
...@@ -46,10 +46,13 @@ def predict(df, reg = None): ...@@ -46,10 +46,13 @@ def predict(df, reg = None):
error = round(mean_absolute_percentage_error([y.iloc[i]], predictions), 3) error = round(mean_absolute_percentage_error([y.iloc[i]], predictions), 3)
if error > 0.2: if error > 0.2:
print(df.iloc[i].name, predictions, round(y.iloc[i],3), f'{bcolors.FAIL}{error}{bcolors.ENDC}') print(df.iloc[i].name, predictions, round(y.iloc[i],3), f'{bcolors.FAIL}{error}{bcolors.ENDC}')
# TODO
# send bad prediction and real value to cloud
elif error > 0.1: elif error > 0.1:
print(df.iloc[i].name, predictions, round(y.iloc[i],3), f'{bcolors.WARNING}{error}{bcolors.ENDC}') print(df.iloc[i].name, predictions, round(y.iloc[i],3), f'{bcolors.WARNING}{error}{bcolors.ENDC}')
else: else:
print(df.iloc[i].name, predictions, round(y.iloc[i],3), f'{bcolors.OKGREEN}{error}{bcolors.ENDC}') print(df.iloc[i].name, predictions, round(y.iloc[i],3), f'{bcolors.OKGREEN}{error}{bcolors.ENDC}')
time.sleep(0.1) time.sleep(0.1)
......
File moved
pandas
matplotlib
xgboost
scikit-learn
exoscale
importlib-metadata
bson
#matplotlib gui :
pyqt5
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment