提交 e26e21f4 编写于 作者: P PyCaret

pycaret-nightly==0.29

上级 2b022d25
......@@ -1204,9 +1204,34 @@ def create_model(model = None,
"""
import logging
logger.info("Initializing create_model()")
logger.info("Checking exceptions")
try:
logger.info("Initializing create_model()")
logger.info("Checking exceptions")
except:
logger = logging.getLogger('logs')
logger.setLevel(logging.DEBUG)
# create console handler and set level to debug
if logger.hasHandlers():
logger.handlers.clear()
ch = logging.FileHandler('logs.log')
ch.setLevel(logging.DEBUG)
# create formatter
formatter = logging.Formatter('%(asctime)s:%(levelname)s:%(message)s')
# add formatter to ch
ch.setFormatter(formatter)
# add ch to logger
logger.addHandler(ch)
logger.info("Initializing create_model()")
logger.info("Checking exceptions")
#exception checking
import sys
......
......@@ -1232,8 +1232,33 @@ def create_model(model = None,
"""
import logging
logger.info("Initializing create_model()")
logger.info("Checking exceptions")
try:
logger.info("Initializing create_model()")
logger.info("Checking exceptions")
except:
logger = logging.getLogger('logs')
logger.setLevel(logging.DEBUG)
# create console handler and set level to debug
if logger.hasHandlers():
logger.handlers.clear()
ch = logging.FileHandler('logs.log')
ch.setLevel(logging.DEBUG)
# create formatter
formatter = logging.Formatter('%(asctime)s:%(levelname)s:%(message)s')
# add formatter to ch
ch.setFormatter(formatter)
# add ch to logger
logger.addHandler(ch)
logger.info("Initializing create_model()")
logger.info("Checking exceptions")
#exception checking
import sys
......
......@@ -2,7 +2,7 @@
# Author: Moez Ali <moez.ali@queensu.ca>
# License: MIT
version_ = "pycaret-nightly-0.28"
version_ = "pycaret-nightly-0.29"
def version():
print(version_)
......@@ -93,8 +93,6 @@ def check_metric(actual, prediction, metric, round=4):
result = (np.fabs(actual - prediction)/actual)[mask].mean()
result = result.round(round)
return result
......
......@@ -13,7 +13,7 @@ with open('requirements.txt') as f:
setup(
name="pycaret-nightly",
version="0.28",
version="0.29",
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.
先完成此消息的编辑!
想要评论请 注册