Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
model_auto_trainer
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
dasharatha.vamshi
model_auto_trainer
Commits
f158c0c2
Commit
f158c0c2
authored
Feb 07, 2023
by
dasharatha.vamshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update model auto trainer
parent
925ca1fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1512 additions
and
3 deletions
+1512
-3
logs.log
logs.log
+1509
-0
pycaret_util.py
pycaret_util.py
+3
-3
No files found.
logs.log
View file @
f158c0c2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
pycaret_util.py
View file @
f158c0c2
...
@@ -3,9 +3,9 @@ from loguru import logger
...
@@ -3,9 +3,9 @@ from loguru import logger
class
GetBestModel
:
class
GetBestModel
:
def
__init__
(
self
,
df
,
target_col
_list
,
list_of_models
,
no_of_models
=
1
):
def
__init__
(
self
,
df
,
target_col
,
list_of_models
,
no_of_models
=
1
):
self
.
df
=
df
self
.
df
=
df
self
.
target_col
_list
=
target_col_list
self
.
target_col
=
target_col
self
.
no_of_models
=
no_of_models
self
.
no_of_models
=
no_of_models
self
.
list_of_models
=
list_of_models
self
.
list_of_models
=
list_of_models
...
@@ -18,7 +18,7 @@ class GetBestModel:
...
@@ -18,7 +18,7 @@ class GetBestModel:
"""
"""
try
:
try
:
logger
.
info
(
"Using Pycaret to train mentioned models"
)
logger
.
info
(
"Using Pycaret to train mentioned models"
)
regression
.
setup
(
data
=
self
.
df
,
target
=
self
.
target_col
_list
)
regression
.
setup
(
data
=
self
.
df
,
target
=
self
.
target_col
)
logger
.
info
(
f
"Selecting the best model using the metric {comparison_metric}"
)
logger
.
info
(
f
"Selecting the best model using the metric {comparison_metric}"
)
best_model
=
regression
.
compare_models
(
include
=
self
.
list_of_models
,
sort
=
comparison_metric
,
best_model
=
regression
.
compare_models
(
include
=
self
.
list_of_models
,
sort
=
comparison_metric
,
n_select
=
self
.
no_of_models
)
n_select
=
self
.
no_of_models
)
...
...
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