Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wp3 support
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
Container 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IoTwins
wp3 support
Commits
7ed76719
Commit
7ed76719
authored
3 years ago
by
Matteo Galletti
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parent
cdb6c679
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
script.py
+34
-0
34 additions, 0 deletions
script.py
with
34 additions
and
0 deletions
script.py
0 → 100644
+
34
−
0
View file @
7ed76719
'''
timeseries_classification.py
================================================================================
The module containing services specific for timeseries classification,
using Deep Learning techniques
Copyright 2020 - The IoTwins Project Consortium, Alma Mater Studiorum
Università di Bologna. All rights reserved.
'''
#!/usr/bin/python3.6
import
os
,
random
,
pickle
,
tempfile
,
joblib
import
pandas
as
pd
import
numpy
as
np
import
sys
,
time
,
warnings
,
io
np
.
set_printoptions
(
threshold
=
sys
.
maxsize
)
import
os.path
from
sklearn.preprocessing
import
StandardScaler
from
sklearn.metrics
import
accuracy_score
,
precision_recall_fscore_support
from
sklearn.metrics
import
confusion_matrix
,
roc_auc_score
from
tensorflow.keras.models
import
load_model
import
tensorflow.keras
as
keras
from
tensorflow.keras.metrics
import
AUC
,
Precision
,
Recall
pd
.
set_option
(
'
display.max_columns
'
,
15
)
from
collections
import
Counter
from
sklearn.model_selection
import
train_test_split
warnings
.
filterwarnings
(
'
ignore
'
)
#from boto3sts import credentials as creds
#import boto3, botocore, datetime
from
ast
import
literal_eval
path_to_cert
=
"
/ca_chain.pem
"
extend_trainset
=
True
print
(
"
ciao
"
)
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