Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
pycaret
提交
2fffc717
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 搜索 >>
提交
2fffc717
编写于
7月 06, 2020
作者:
P
PyCaret
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updated pycaret-nightly==0.17
上级
444bd299
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
13 addition
and
10 deletion
+13
-10
pycaret/classification.py
pycaret/classification.py
+5
-2
pycaret/nlp.py
pycaret/nlp.py
+2
-5
pycaret/regression.py
pycaret/regression.py
+4
-1
pycaret/utils.py
pycaret/utils.py
+1
-1
setup.py
setup.py
+1
-1
未找到文件。
pycaret/classification.py
浏览文件 @
2fffc717
...
...
@@ -1833,7 +1833,7 @@ def create_model(estimator = None,
------------
This function creates a model and scores it using Stratified Cross Validation.
The output prints a score grid that shows Accuracy, AUC, Recall, Precision,
F1
and Kappa
by fold (default = 10 Fold).
F1
, Kappa and MCC
by fold (default = 10 Fold).
This function returns a trained model object.
...
...
@@ -9902,7 +9902,10 @@ def predict_model(estimator,
estimator
=
deepcopy
(
estimator
)
#lookout for an alternate of deepcopy()
clear_output
()
try
:
clear_output
()
except
:
pass
if
type
(
estimator
)
is
str
:
if
platform
==
'aws'
:
...
...
pycaret/nlp.py
浏览文件 @
2fffc717
...
...
@@ -136,17 +136,13 @@ def setup(data,
if
type
(
session_id
)
is
not
int
:
sys
.
exit
(
'(Type Error): session_id parameter must be an integer.'
)
#ch
ce
k if spacy is loaded
#ch
ec
k if spacy is loaded
try
:
import
spacy
sp
=
spacy
.
load
(
'en_core_web_sm'
,
disable
=
[
'parser'
,
'ner'
])
except
:
sys
.
exit
(
'(Type Error): spacy english model is not yet downloaded. See the documentation of setup to see installation guide.'
)
#silent
if
type
(
silent
)
is
not
bool
:
sys
.
exit
(
"(Type Error): silent parameter only accepts True or False. "
)
#html
if
type
(
html
)
is
not
bool
:
sys
.
exit
(
'(Type Error): html parameter only accepts True or False.'
)
...
...
@@ -485,6 +481,7 @@ def setup(data,
update_display
(
monitor
,
display_id
=
'monitor'
)
nlp
=
spacy
.
load
(
'en_core_web_sm'
,
disable
=
[
'parser'
,
'ner'
])
nlp
.
max_length
=
3000000
#increasing text length to 3000000 from default of 1000000
allowed_postags
=
[
'NOUN'
,
'ADJ'
,
'VERB'
,
'ADV'
]
text_step7
=
[]
...
...
pycaret/regression.py
浏览文件 @
2fffc717
...
...
@@ -8785,7 +8785,10 @@ def predict_model(estimator,
estimator
=
deepcopy
(
estimator
)
clear_output
()
try
:
clear_output
()
except
:
pass
if
type
(
estimator
)
is
str
:
if
platform
==
'aws'
:
...
...
pycaret/utils.py
浏览文件 @
2fffc717
...
...
@@ -3,7 +3,7 @@
# License: MIT
def
version
():
print
(
"pycaret-nightly-0.1
6
"
)
print
(
"pycaret-nightly-0.1
7
"
)
def
check_metric
(
actual
,
prediction
,
metric
,
round
=
4
):
...
...
setup.py
浏览文件 @
2fffc717
...
...
@@ -13,7 +13,7 @@ with open('requirements.txt') as f:
setup
(
name
=
"pycaret-nightly"
,
version
=
"0.1
6
"
,
version
=
"0.1
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录