Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
pycaret
提交
989a66cb
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 搜索 >>
提交
989a66cb
编写于
7月 10, 2020
作者:
P
PyCaret
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updated pycaret-nightly==0.19
上级
d8c002de
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
469 addition
and
180 deletion
+469
-180
.gitignore
.gitignore
+1
-0
pycaret/anomaly.py
pycaret/anomaly.py
+9
-9
pycaret/classification.py
pycaret/classification.py
+432
-147
pycaret/clustering.py
pycaret/clustering.py
+6
-6
pycaret/nlp.py
pycaret/nlp.py
+8
-8
pycaret/regression.py
pycaret/regression.py
+8
-9
pycaret/utils.py
pycaret/utils.py
+5
-1
未找到文件。
.gitignore
浏览文件 @
989a66cb
...
...
@@ -17,3 +17,4 @@ catboost_info
/pycaret.egg-info
/dist
.vscode/settings.json
/logs.log
\ No newline at end of file
pycaret/anomaly.py
浏览文件 @
989a66cb
...
...
@@ -35,8 +35,8 @@ def setup(data,
n_jobs
=
-
1
,
#added in pycaret==2.0.0
html
=
True
,
#added in pycaret==2.0.0
session_id
=
None
,
log_experiment
=
False
,
#added in pycaret==2.0.0
experiment_name
=
None
,
#added in pycaret==2.0.0
logging
=
False
,
#added in pycaret==2.0.0
log_plots
=
False
,
#added in pycaret==2.0.0
log_profile
=
False
,
#added in pycaret==2.0.0
log_data
=
False
,
#added in pycaret==2.0.0
...
...
@@ -252,12 +252,12 @@ def setup(data,
unique number is then distributed as a seed in all functions used during the
experiment. This can be used for later reproducibility of the entire experiment.
log_experiment: bool, default = True
When set to True, all metrics and parameters are logged on MLFlow server.
experiment_name: str, default = None
Name of experiment for logging. When set to None, 'clf' is by default used as
alias for the experiment name.
logging: bool, default = True
When set to True, all metrics and parameters are logged on MLFlow server.
alias for the experiment name.
log_plots: bool, default = False
When set to True, specific plots are logged in MLflow as a png file. By default,
...
...
@@ -491,9 +491,9 @@ def setup(data,
if
type
(
html
)
is
not
bool
:
sys
.
exit
(
'(Type Error): html parameter only accepts True or False.'
)
#log
ging
if
type
(
log
ging
)
is
not
bool
:
sys
.
exit
(
'(Type Error): log
ging
parameter only accepts True or False.'
)
#log
_experiment
if
type
(
log
_experiment
)
is
not
bool
:
sys
.
exit
(
'(Type Error): log
_experiment
parameter only accepts True or False.'
)
#log_plots
if
type
(
log_plots
)
is
not
bool
:
...
...
@@ -897,7 +897,7 @@ def setup(data,
n_jobs_param
=
n_jobs
#create logging parameter
logging_param
=
log
ging
logging_param
=
log
_experiment
#create exp_name_log param incase logging is False
exp_name_log
=
'no_logging'
...
...
pycaret/classification.py
浏览文件 @
989a66cb
此差异已折叠。
点击以展开。
pycaret/clustering.py
浏览文件 @
989a66cb
...
...
@@ -35,8 +35,8 @@ def setup(data,
n_jobs
=
-
1
,
#added in pycaret==2.0.0
html
=
True
,
#added in pycaret==2.0.0
session_id
=
None
,
log_experiment
=
False
,
#added in pycaret==2.0.0
experiment_name
=
None
,
#added in pycaret==2.0.0
logging
=
False
,
#added in pycaret==2.0.0
log_plots
=
False
,
#added in pycaret==2.0.0
log_profile
=
False
,
#added in pycaret==2.0.0
log_data
=
False
,
#added in pycaret==2.0.0
...
...
@@ -256,7 +256,7 @@ def setup(data,
Name of experiment for logging. When set to None, 'clf' is by default used as
alias for the experiment name.
log
ging
: bool, default = True
log
_experiment
: bool, default = True
When set to True, all metrics and parameters are logged on MLFlow server.
log_plots: bool, default = False
...
...
@@ -491,9 +491,9 @@ def setup(data,
if
type
(
html
)
is
not
bool
:
sys
.
exit
(
'(Type Error): html parameter only accepts True or False.'
)
#log
ging
if
type
(
log
ging
)
is
not
bool
:
sys
.
exit
(
'(Type Error): log
ging
parameter only accepts True or False.'
)
#log
_experiment
if
type
(
log
_experiment
)
is
not
bool
:
sys
.
exit
(
'(Type Error): log
_experiment
parameter only accepts True or False.'
)
#log_plots
if
type
(
log_plots
)
is
not
bool
:
...
...
@@ -892,7 +892,7 @@ def setup(data,
n_jobs_param
=
n_jobs
#create logging parameter
logging_param
=
log
ging
logging_param
=
log
_experiment
#create exp_name_log param incase logging is False
exp_name_log
=
'no_logging'
...
...
pycaret/nlp.py
浏览文件 @
989a66cb
...
...
@@ -9,8 +9,8 @@ def setup(data,
custom_stopwords
=
None
,
html
=
True
,
#added in pycaret==2.0.0
session_id
=
None
,
log_experiment
=
False
,
#added in pycaret==2.0.0
experiment_name
=
None
,
#added in pycaret==2.0.0
logging
=
False
,
#added in pycaret==2.0.0
log_plots
=
False
,
#added in pycaret==2.0.0
log_data
=
False
,
#added in pycaret==2.0.0)
verbose
=
True
):
#added in pycaret==2.0.0)
...
...
@@ -56,13 +56,13 @@ def setup(data,
unique number is then distributed as a seed in all functions used during the
experiment. This can be used for later reproducibility of the entire experiment.
log_experiment: bool, default = True
When set to True, all metrics and parameters are logged on MLFlow server.
experiment_name: str, default = None
Name of experiment for logging. When set to None, 'clf' is by default used as
alias for the experiment name.
logging: bool, default = True
When set to True, all metrics and parameters are logged on MLFlow server.
log_plots: bool, default = False
When set to True, specific plots are logged in MLflow as a png file. By default,
it is set to False.
...
...
@@ -149,9 +149,9 @@ def setup(data,
if
type
(
html
)
is
not
bool
:
sys
.
exit
(
'(Type Error): html parameter only accepts True or False.'
)
#log
ging
if
type
(
log
ging
)
is
not
bool
:
sys
.
exit
(
'(Type Error): log
ging
parameter only accepts True or False.'
)
#log
_experiment
if
type
(
log
_experiment
)
is
not
bool
:
sys
.
exit
(
'(Type Error): log
_experiment
parameter only accepts True or False.'
)
#log_plots
if
type
(
log_plots
)
is
not
bool
:
...
...
@@ -265,7 +265,7 @@ def setup(data,
data_
=
data
.
copy
()
#create logging parameter
logging_param
=
log
ging
logging_param
=
log
_experiment
#create exp_name_log param incase logging is False
exp_name_log
=
'no_logging'
...
...
pycaret/regression.py
浏览文件 @
989a66cb
...
...
@@ -56,8 +56,8 @@ def setup(data,
n_jobs
=
-
1
,
#added in pycaret==2.0.0
html
=
True
,
#added in pycaret==2.0.0
session_id
=
None
,
log_experiment
=
False
,
#added in pycaret==2.0.0
experiment_name
=
None
,
#added in pycaret==2.0.0
logging
=
False
,
#added in pycaret==2.0.0
log_plots
=
False
,
#added in pycaret==2.0.0
log_profile
=
False
,
#added in pycaret==2.0.0
log_data
=
False
,
#added in pycaret==2.0.0
...
...
@@ -395,13 +395,13 @@ def setup(data,
be performed assuming automatically inferred data types. Not recommended for direct use
except for established pipelines.
log_experiment: bool, default = False
When set to True, all metrics and parameters are logged on MLFlow server.
experiment_name: str, default = None
Name of experiment for logging. When set to None, 'clf' is by default used as
alias for the experiment name.
logging: bool, default = False
When set to True, all metrics and parameters are logged on MLFlow server.
log_plots: bool, default = False
When set to True, specific plots are logged in MLflow as a png file. By default,
it is set to False.
...
...
@@ -676,7 +676,6 @@ def setup(data,
if
type
(
interaction_threshold
)
is
not
float
:
sys
.
exit
(
'(Type Error): interaction_threshold must be a float between 0 and 1. '
)
#cannot drop target
if
ignore_features
is
not
None
:
if
target
in
ignore_features
:
...
...
@@ -730,9 +729,9 @@ def setup(data,
if
type
(
data_split_shuffle
)
is
not
bool
:
sys
.
exit
(
'(Type Error): data_split_shuffle parameter only accepts True or False.'
)
#log
ging
if
type
(
log
ging
)
is
not
bool
:
sys
.
exit
(
'(Type Error): log
ging
parameter only accepts True or False.'
)
#log
_experiment
if
type
(
log
_experiment
)
is
not
bool
:
sys
.
exit
(
'(Type Error): log
_experiment
parameter only accepts True or False.'
)
#log_plots
if
type
(
log_plots
)
is
not
bool
:
...
...
@@ -1237,7 +1236,7 @@ def setup(data,
display_container
=
[]
#create logging parameter
logging_param
=
log
ging
logging_param
=
log
_experiment
#create exp_name_log param incase logging is False
exp_name_log
=
'no_logging'
...
...
pycaret/utils.py
浏览文件 @
989a66cb
...
...
@@ -2,9 +2,13 @@
# Author: Moez Ali <moez.ali@queensu.ca>
# License: MIT
version_
=
"pycaret-nightly-0.19"
def
version
():
print
(
"pycaret-nightly-0.19"
)
print
(
version_
)
def
__version__
():
return
version_
def
check_metric
(
actual
,
prediction
,
metric
,
round
=
4
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录