Skip to content
Snippets Groups Projects
Commit 4171086d authored by DIANE's avatar DIANE
Browse files

packages update

parent ecf202a1
No related branches found
No related tags found
No related merge requests found
## Data loading, handling, and preprocessing ## Data loading, handling, and preprocessing
import os
import sys import sys
import csv import csv
import random
import numpy as np import numpy as np
import pandas as pd import pandas as pd
from os import listdir from os import listdir
...@@ -13,7 +15,7 @@ from umap.umap_ import UMAP ...@@ -13,7 +15,7 @@ from umap.umap_ import UMAP
from sklearn.decomposition import PCA from sklearn.decomposition import PCA
# Clustering # Clustering
from sklearn.cluster import KMeans as km from sklearn.cluster import KMeans
#import hdbscan #import hdbscan
# Modelling # Modelling
...@@ -34,7 +36,8 @@ from sklearn.cross_decomposition import PLSRegression ...@@ -34,7 +36,8 @@ from sklearn.cross_decomposition import PLSRegression
## Images and plots ## Images and plots
from PIL import Image from PIL import Image
import plotly.express as px import plotly.express as px
import matplotlib.pyplot as plt
import seaborn as sns
### Important Metrics ### Important Metrics
from sklearn.metrics import pairwise_distances_argmin_min from sklearn.metrics import pairwise_distances_argmin_min
...@@ -48,3 +51,10 @@ import pyodbc ...@@ -48,3 +51,10 @@ import pyodbc
#Library for reading the config file, which is in JSON #Library for reading the config file, which is in JSON
import 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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment