Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Fidle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Talks
Fidle
Commits
35dcd635
Commit
35dcd635
authored
5 years ago
by
Jean-Luc Parouty
Browse files
Options
Downloads
Patches
Plain Diff
Update SYNOP and pwk
parent
e2db673c
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
SYNOP/01-Preparation-of-data.ipynb
+677
-675
677 additions, 675 deletions
SYNOP/01-Preparation-of-data.ipynb
SYNOP/01-Try-a-peediction.ipynb
+175
-245
175 additions, 245 deletions
SYNOP/01-Try-a-peediction.ipynb
fidle/pwk.py
+34
-1
34 additions, 1 deletion
fidle/pwk.py
with
886 additions
and
921 deletions
SYNOP/01-Preparation-of-data.ipynb
+
677
−
675
View file @
35dcd635
This diff is collapsed.
Click to expand it.
SYNOP/01-Try-a-peediction.ipynb
+
175
−
245
View file @
35dcd635
source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
fidle/pwk.py
+
34
−
1
View file @
35dcd635
...
...
@@ -30,7 +30,7 @@ import matplotlib.pyplot as plt
import
seaborn
as
sn
#IDRIS : module en cours d'installation
from
IPython.display
import
display
,
Image
,
Markdown
,
HTML
VERSION
=
'
0.
4.4
'
VERSION
=
'
0.
5.0
'
_save_figs
=
False
_figs_dir
=
'
./figs
'
...
...
@@ -382,6 +382,39 @@ def plot_donut(values, labels, colors=["lightsteelblue","coral"], figsize=(6,6),
save_fig
(
save_as
)
plt
.
show
()
def
plot_multivariate_serie
(
sequence
,
labels
=
None
,
prediction
=
None
,
only_features
=
None
,
columns
=
3
,
width
=
5
,
height
=
4
,
wspace
=
0.3
,
hspace
=
0.2
,
save_as
=
'
auto
'
):
sequence_len
=
len
(
sequence
)
features_len
=
sequence
.
shape
[
1
]
if
only_features
is
None
:
only_features
=
range
(
features_len
)
if
labels
is
None
:
labels
=
range
(
features_len
)
t
=
np
.
arange
(
sequence_len
)
rows
=
math
.
ceil
(
features_len
/
columns
)
fig
=
plt
.
figure
(
figsize
=
(
columns
*
width
,
rows
*
height
))
fig
.
subplots_adjust
(
wspace
=
0.3
,
hspace
=
0.2
)
n
=
1
for
i
in
only_features
:
ax
=
fig
.
add_subplot
(
rows
,
columns
,
n
)
ax
.
plot
(
t
,
sequence
[:,
i
],
'
-
'
,
linewidth
=
1
,
color
=
'
steelblue
'
,
label
=
labels
[
i
])
ax
.
plot
(
t
,
sequence
[:,
i
],
'
o
'
,
markersize
=
4
,
color
=
'
steelblue
'
)
ax
.
plot
(
t
[
-
1
],
sequence
[
-
1
:,
i
],
'
o
'
,
fillstyle
=
'
full
'
,
markersize
=
8
,
color
=
'
steelblue
'
)
if
prediction
is
not
None
:
ax
.
plot
(
t
[
-
1
],
[
prediction
[
0
][
i
]],
'
o
'
,
fillstyle
=
'
full
'
,
markersize
=
8
,
color
=
'
red
'
)
ax
.
legend
(
loc
=
"
upper left
"
)
n
+=
1
save_fig
(
save_as
)
plt
.
show
()
def
set_save_fig
(
save
=
True
,
figs_dir
=
'
./figs
'
,
figs_name
=
'
fig_
'
,
figs_id
=
0
):
"""
...
...
This diff is collapsed.
Click to expand it.
Jean-Luc Parouty
@pjluc
mentioned in commit
4d1545b3
·
5 years ago
mentioned in commit
4d1545b3
mentioned in commit 4d1545b3efc999725b47a86b09b3e3ded60bf089
Toggle commit list
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