Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ivan Ilin
finodays
Commits
10f08b6e
Commit
10f08b6e
authored
1 year ago
by
cradmlozzer
Browse files
Options
Download
Email Patches
Plain Diff
comment main func
parent
4d6eaea3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/ml/__main__.py
+6
-6
server/ml/__main__.py
with
6 additions
and
6 deletions
+6
-6
server/ml/__main__.py
+
6
-
6
View file @
10f08b6e
...
...
@@ -131,11 +131,11 @@ def preprocess_list(list_of_prices, period: int=10)->list:
if
__name__
==
'__main__'
:
n_days
=
2
db_session
.
global_init
(
"db/db.db"
)
db_sess
=
db_session
.
create_session
()
#
if __name__ == '__main__':
#
n_days = 2
#
db_session.global_init("db/db.db")
#
db_sess = db_session.create_session()
l
=
get_future_prices
(
cfa_image_id
=
3
,
db_sess
=
db_sess
,
is_refit
=
True
,
n_days
=
n_days
)
print
(
l
)
#
l = get_future_prices(cfa_image_id=3, db_sess=db_sess, is_refit=True, n_days=n_days)
#
print(l)
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets