diff --git a/Packages.py b/Packages.py index 19480ebde1529cc6a924579923b0e31f7473f2d1..3fdabbae5271c8093fa472b2d314a8fea2f3db8a 100644 --- a/Packages.py +++ b/Packages.py @@ -1,7 +1,9 @@ ## Data loading, handling, and preprocessing +import os import sys import csv +import random import numpy as np import pandas as pd from os import listdir @@ -13,7 +15,7 @@ from umap.umap_ import UMAP from sklearn.decomposition import PCA # Clustering -from sklearn.cluster import KMeans as km +from sklearn.cluster import KMeans #import hdbscan # Modelling @@ -34,7 +36,8 @@ from sklearn.cross_decomposition import PLSRegression ## Images and plots from PIL import Image import plotly.express as px - +import matplotlib.pyplot as plt +import seaborn as sns ### Important Metrics from sklearn.metrics import pairwise_distances_argmin_min @@ -48,3 +51,10 @@ import pyodbc #Library for reading the config file, which is in JSON import json +# save models +import joblib +import pickle as pkl + + +from hyperopt import fmin, hp, tpe, Trials, space_eval, STATUS_OK, anneal +st.set_option('deprecation.showPyplotGlobalUse', False)