Git Product home page Git Product logo

decision-tree-2022's Introduction

decision-tree-2022

项目目录

.
├── README.md
├── data
│   └── 第1阶段.xlsx
├── dataloader.py
├── pipeline.py
├── results
├── test.ipynb
├── test.py
└── train.py

data

放置数据

result

放置决策树模型结果,以及决策树形状图片

dataloader.py

放置各类数据处理函数

pipeline.py

模型的数据处理模块,按序列调用dataloader中的处理函数,每次处理可称为一个阶段,上一阶段输出为下一阶段输入。

示例:

from dataloader import *

def pipeline():
    data = read_data()
    data = womac_fillna(data)
    data = process_string_clo(data)
    data = womac_classification(data)
    data = delete_nan_col_and_row(data)
    data = precess_by_feature_meaning(data)
    return get_train_data(data)
  • dataloader.py中新增函数,并在pipline.py中调用以对数据进行进一步处理

train.py

训练模块,简要介绍:

  1. 在其中调用pipline进行数据处理
  2. 在其中定义了train函数作为每次实验的训练函数
  3. 在其中修改超参数进行调参

test.ipynb

快速实验

decision-tree-2022's People

Contributors

appletea233 avatar oliverdu8-24 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.