Skip to content

Commit

Permalink
fix auto report
Browse files Browse the repository at this point in the history
  • Loading branch information
itlubber committed Mar 5, 2024
1 parent ee1ba48 commit 8fd7f90
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion scorecardpipeline/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from .rule_extraction import DecisionTreeRuleExtractor


__version__ = "0.1.32"
__version__ = "0.1.33"
__all__ = (
"__version__"
, "FeatureSelection", "FeatureImportanceSelector", "StepwiseSelection", "Combiner", "WOETransformer"
Expand Down
2 changes: 2 additions & 0 deletions scorecardpipeline/auto_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ def auto_data_testing_report(data, features=None, target="target", date=None, da
if not isinstance(excel_writer, ExcelWriter) and not isinstance(sheet, Worksheet):
writer.save(excel_writer)

return end_row, end_col


if __name__ == '__main__':
target = "creditability"
Expand Down
39 changes: 19 additions & 20 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import re
from setuptools import setup, find_packages, Extension


NAME = 'scorecardpipeline'


Expand All @@ -11,39 +10,39 @@ def get_version():
return re.search(r'__version__ = "(.*?)"', f.read()).group(1)


def get_requirements(stage = None):
def get_requirements(stage=None):
file_name = 'requirements'

if stage is not None:
file_name = f"{file_name}-{stage}"

requirements = []
with open(f"{file_name}.txt", 'r') as f:
for line in f:
line = line.strip()
if not line or line.startswith('-'):
continue

requirements.append(line)

return requirements


setup(
name = NAME,
version = get_version(),
description = '评分卡pipeline建模包,封装toad、scorecardpy、optbinning等评分卡建模相关组件,API风格与sklearn高度一致,自持自定义模型报告输出',
long_description = open('README.md', encoding = 'utf-8').read(),
long_description_content_type = 'text/markdown',
url = 'https://github.com/itlubber/scorecardpipeline',
author = 'itlubber',
author_email = '[email protected]',
packages = find_packages(),
include_package_data = True,
python_requires = '>=3.6',
install_requires = get_requirements(),
license = 'MIT',
classifiers = [
name=NAME,
version=get_version(),
description='评分卡pipeline建模包,封装toad、scorecardpy、optbinning等评分卡建模相关组件,API风格与sklearn高度一致,自持自定义模型报告输出',
long_description=open('README.md', encoding='utf-8').read(),
long_description_content_type='text/markdown',
url='https://github.com/itlubber/scorecardpipeline',
author='itlubber',
author_email='[email protected]',
packages=find_packages(),
include_package_data=True,
python_requires='>=3.6',
install_requires=get_requirements(),
license='MIT',
classifiers=[
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
Expand All @@ -55,4 +54,4 @@ def get_requirements(stage = None):
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
)
)

0 comments on commit 8fd7f90

Please sign in to comment.