Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NIRS_Workflow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CEFE
PACE
NIRS_Workflow
Commits
4171086d
Commit
4171086d
authored
11 months ago
by
DIANE
Browse files
Options
Downloads
Patches
Plain Diff
packages update
parent
ecf202a1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Packages.py
+12
-2
12 additions, 2 deletions
Packages.py
with
12 additions
and
2 deletions
Packages.py
+
12
−
2
View file @
4171086d
## 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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment