Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CTCMP-R7204
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
aakash.bedi
CTCMP-R7204
Commits
2d889fd4
Commit
2d889fd4
authored
Apr 01, 2022
by
aakash.bedi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uncomment to_sql command in parameter optimizer file
parent
a2a8f418
Pipeline
#33285
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scripts/core/recommender/parameter_optimizer.py
scripts/core/recommender/parameter_optimizer.py
+2
-2
No files found.
scripts/core/recommender/parameter_optimizer.py
View file @
2d889fd4
...
@@ -241,8 +241,8 @@ class ParameterOptimization(object):
...
@@ -241,8 +241,8 @@ class ParameterOptimization(object):
df_updated_recommendation
.
to_csv
(
"{}.csv"
.
format
(
OUTPUT_DATA
[
"tables"
][
"lookup"
]),
index
=
False
)
df_updated_recommendation
.
to_csv
(
"{}.csv"
.
format
(
OUTPUT_DATA
[
"tables"
][
"lookup"
]),
index
=
False
)
full_profile_data
=
"conf/profile.csv"
full_profile_data
=
"conf/profile.csv"
df_full_profile
=
pd
.
read_csv
(
full_profile_data
)
df_full_profile
=
pd
.
read_csv
(
full_profile_data
)
#
df_updated_recommendation.to_sql(OUTPUT_DATA["tables"]["lookup"], engine, if_exists="replace")
df_updated_recommendation
.
to_sql
(
OUTPUT_DATA
[
"tables"
][
"lookup"
],
engine
,
if_exists
=
"replace"
)
#
df_full_profile.to_sql(OUTPUT_DATA["tables"]["profile"], engine, if_exists="replace")
df_full_profile
.
to_sql
(
OUTPUT_DATA
[
"tables"
][
"profile"
],
engine
,
if_exists
=
"replace"
)
def
find_optimum
(
self
,
data_dict
,
add_predict
,
controllable
=
False
):
def
find_optimum
(
self
,
data_dict
,
add_predict
,
controllable
=
False
):
logger
.
info
(
"Finding optimum data for the last received live data."
)
logger
.
info
(
"Finding optimum data for the last received live data."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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