Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Recommendation Engine
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
URBANITE
Open
Recommendation Engine
Commits
8445d3e4
Commit
8445d3e4
authored
2 years ago
by
Campos Cordobes, Sergio
Browse files
Options
Downloads
Patches
Plain Diff
Update src/modelo NN.pkcls, src/simulation_model.py
parent
8aaaa363
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/modelo NN.pkcls
+0
-0
0 additions, 0 deletions
src/modelo NN.pkcls
src/simulation_model.py
+34
-0
34 additions, 0 deletions
src/simulation_model.py
with
34 additions
and
0 deletions
src/modelo NN.pkcls
0 → 100644
+
0
−
0
View file @
8445d3e4
File added
This diff is collapsed.
Click to expand it.
src/simulation_model.py
0 → 100644
+
34
−
0
View file @
8445d3e4
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on: 16/01/2023
Sergio Campos 02-03/2023
"""
import
math
import
pickle
import
Orange
import
numpy
as
np
import
json
from
src
import
constants
import
sys
print
(
sys
.
path
)
from
src
import
constants
,
utils
def
simulation_model_getClousure_KPIs
(
cnx
,
request
):
try
:
with
open
(
'
modelo NN.pkcls
'
,
'
rb
'
)
as
f
:
mp
=
pickle
.
load
(
f
)
print
(
mp
)
arguments
=
np
.
array
([
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
16
,
17
,
18
,
19
,
20
,
21
,
22
,
23
,
24
,
25
,
26
,
27
,
28
,
29
,
30
,
31
,
32
,
33
,
34
,
35
,
36
,
37
,
38
,
39
,
40
,
41
,
42
,
43
,
44
,
45
,
46
,
47
,
48
,
49
,
50
,
51
,
52
,
53
,
54
,
55
,
56
,
57
,
58
,
59
,
60
,
61
,
62
,
63
,
64
]).
reshape
(
1
,
-
1
)
res
=
mp
.
predict
(
arguments
)
kpi
=
res
[
0
]
print
(
res
)
return
str
(
kpi
)
except
:
return
constants
.
ERROR_EXCEPTION
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