Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
pycaret
提交
7971b352
pycaret
项目概览
OpenDocCN
/
pycaret
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
pycaret
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
7971b352
编写于
7月 16, 2020
作者:
P
PyCaret
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
pycaret-nightly==0.27 update part 1
上级
a483da25
变更
6
展开全部
显示空白变更内容
内联
并排
Showing
6 changed file
with
106 addition
and
212 deletion
+106
-212
pycaret/anomaly.py
pycaret/anomaly.py
+0
-13
pycaret/classification.py
pycaret/classification.py
+104
-170
pycaret/clustering.py
pycaret/clustering.py
+0
-13
pycaret/regression.py
pycaret/regression.py
+0
-14
pycaret/utils.py
pycaret/utils.py
+1
-1
setup.py
setup.py
+1
-1
未找到文件。
pycaret/anomaly.py
浏览文件 @
7971b352
...
...
@@ -3501,9 +3501,6 @@ def models():
"""
import
logging
logger
.
info
(
"Initializing models()"
)
import
pandas
as
pd
model_id
=
[
'abod'
,
'iforest'
,
'cluster'
,
'cof'
,
'histogram'
,
'knn'
,
'lof'
,
'svm'
,
'pca'
,
'mcd'
,
'sod'
,
'sos'
]
...
...
@@ -3540,8 +3537,6 @@ def models():
df
.
set_index
(
'ID'
,
inplace
=
True
)
logger
.
info
(
"models() succesfully completed"
)
return
df
def
get_logs
(
experiment_name
=
None
,
save
=
False
):
...
...
@@ -3570,9 +3565,6 @@ def get_logs(experiment_name = None, save = False):
"""
import
logging
logger
.
info
(
"Initializing get_logs()"
)
import
sys
if
experiment_name
is
None
:
...
...
@@ -3586,20 +3578,15 @@ def get_logs(experiment_name = None, save = False):
client
=
MlflowClient
()
if
client
.
get_experiment_by_name
(
exp_name_log_
)
is
None
:
logger
.
info
(
"No active run found."
)
sys
.
exit
(
'No active run found. Check logging parameter in setup or to get logs for inactive run pass experiment_name.'
)
exp_id
=
client
.
get_experiment_by_name
(
exp_name_log_
).
experiment_id
logger
.
info
(
"Searching runs"
)
runs
=
mlflow
.
search_runs
(
exp_id
)
if
save
:
logger
.
info
(
"Saving logs as csv"
)
file_name
=
str
(
exp_name_log_
)
+
'_logs.csv'
runs
.
to_csv
(
file_name
,
index
=
False
)
logger
.
info
(
"get_logs() succesfully completed"
)
return
runs
def
get_config
(
variable
):
...
...
pycaret/classification.py
浏览文件 @
7971b352
此差异已折叠。
点击以展开。
pycaret/clustering.py
浏览文件 @
7971b352
...
...
@@ -3758,9 +3758,6 @@ def models():
"""
import
logging
logger
.
info
(
"Initializing models()"
)
import
pandas
as
pd
model_id
=
[
'kmeans'
,
'ap'
,
'meanshift'
,
'sc'
,
'hclust'
,
'dbscan'
,
'optics'
,
'birch'
,
'kmodes'
]
...
...
@@ -3791,8 +3788,6 @@ def models():
df
.
set_index
(
'ID'
,
inplace
=
True
)
logger
.
info
(
"models() succesfully completed"
)
return
df
def
get_logs
(
experiment_name
=
None
,
save
=
False
):
...
...
@@ -3821,9 +3816,6 @@ def get_logs(experiment_name = None, save = False):
"""
import
logging
logger
.
info
(
"Initializing get_logs()"
)
import
sys
if
experiment_name
is
None
:
...
...
@@ -3837,20 +3829,15 @@ def get_logs(experiment_name = None, save = False):
client
=
MlflowClient
()
if
client
.
get_experiment_by_name
(
exp_name_log_
)
is
None
:
logger
.
info
(
"No active run found."
)
sys
.
exit
(
'No active run found. Check logging parameter in setup or to get logs for inactive run pass experiment_name.'
)
exp_id
=
client
.
get_experiment_by_name
(
exp_name_log_
).
experiment_id
logger
.
info
(
"Searching runs"
)
runs
=
mlflow
.
search_runs
(
exp_id
)
if
save
:
logger
.
info
(
"Saving logs as csv"
)
file_name
=
str
(
exp_name_log_
)
+
'_logs.csv'
runs
.
to_csv
(
file_name
,
index
=
False
)
logger
.
info
(
"get_logs() succesfully completed"
)
return
runs
def
get_config
(
variable
):
...
...
pycaret/regression.py
浏览文件 @
7971b352
...
...
@@ -9577,9 +9577,6 @@ def models(type=None):
"""
import
logging
logger
.
info
(
"Initializing models()"
)
import
pandas
as
pd
model_id
=
[
'lr'
,
'lasso'
,
'ridge'
,
'en'
,
'lar'
,
'llar'
,
'omp'
,
'br'
,
'ard'
,
'par'
,
...
...
@@ -9660,8 +9657,6 @@ def models(type=None):
if
type
==
'ensemble'
:
df
=
df
[
df
.
index
.
isin
(
ensemble_models
)]
logger
.
info
(
"models() succesfully completed"
)
return
df
def
get_logs
(
experiment_name
=
None
,
save
=
False
):
...
...
@@ -9690,9 +9685,6 @@ def get_logs(experiment_name = None, save = False):
"""
import
logging
logger
.
info
(
"Initializing get_logs()"
)
import
sys
if
experiment_name
is
None
:
...
...
@@ -9703,24 +9695,18 @@ def get_logs(experiment_name = None, save = False):
import
mlflow
from
mlflow.tracking
import
MlflowClient
logger
.
info
(
"Importing MLFlow Client"
)
client
=
MlflowClient
()
if
client
.
get_experiment_by_name
(
exp_name_log_
)
is
None
:
logger
.
info
(
"No active run found."
)
sys
.
exit
(
'No active run found. Check logging parameter in setup or to get logs for inactive run pass experiment_name.'
)
exp_id
=
client
.
get_experiment_by_name
(
exp_name_log_
).
experiment_id
logger
.
info
(
"Searching runs"
)
runs
=
mlflow
.
search_runs
(
exp_id
)
if
save
:
logger
.
info
(
"Saving logs as csv"
)
file_name
=
str
(
exp_name_log_
)
+
'_logs.csv'
runs
.
to_csv
(
file_name
,
index
=
False
)
logger
.
info
(
"get_logs() succesfully completed"
)
return
runs
def
get_config
(
variable
):
...
...
pycaret/utils.py
浏览文件 @
7971b352
...
...
@@ -2,7 +2,7 @@
# Author: Moez Ali <moez.ali@queensu.ca>
# License: MIT
version_
=
"pycaret-nightly-0.2
6
"
version_
=
"pycaret-nightly-0.2
7
"
def
version
():
print
(
version_
)
...
...
setup.py
浏览文件 @
7971b352
...
...
@@ -13,7 +13,7 @@ with open('requirements.txt') as f:
setup
(
name
=
"pycaret-nightly"
,
version
=
"0.2
6
"
,
version
=
"0.2
7
"
,
description
=
"Nightly build of PyCaret - An open source, low-code machine learning library in Python."
,
long_description
=
readme
(),
long_description_content_type
=
"text/markdown"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录