Coder Social home page Coder Social logo

shifu's Introduction

shiFu

代码架构

shiFu/ # 我们的github1项目    
    my_project/ # 存放我们的项目代码
    	data.py # 生成data_loader
    	data_process.py # 数据预处理,split,generate hd5
    	engine.py # 封装train,val,predict方法
    	models_engine.py # 工厂模式,封装engine.py和model/...py
    	utils.py # 一些有用的方法
    	train.py # main方法
    	config.py # 运行的所有配置
    	model/ # 存放模型.py
    		xDeepFM.py
    		...
    baseline/ # 已经公开的源代码
        FM/
        xDeepFM/
    export/ # 数据探索&可视化(存放jupyter或者html数据探索文件)
data/
    track1/ # 第一个赛道的数据,大约40G
		... # 各种csv(原始数据)
    track2/ # 第二个赛道的数据,大概5G
		...
cache/
    track1/
        checkpoints/ # 用来存放模型文件
        runs/ # 用来存在运行的记录(比如说tensorboard可视化文件)
        result/ # 存放提交的csvfile
        tmp/ # 存放data_process.py分离的train, val数据
        	...
        	hd5/ # 存放hd5大文件
    track2/
    	checkpoints/ # 用来存放模型文件
        runs/ # 用来存在运行的记录(比如说tensorboard可视化文件)
        result/ # 存放提交的csvfile
        tmp/ # 存放data_process.py分离的train,val数据
        	...
        	hd5/ # 存放hd5大文件

如何运行

step one

查看config.py文件,选择运行track1还是track2的数据。

step two

python data_process.py # 切分成train-val(8:2),生成hd5文件

step three

python train.py

如何实现新想法

你只需要在model/文件夹下添加你的模型文件和在config.py添加模型配置就可以了

如何编写模型文件

接口...

如何添加配置

config.py

shifu's People

Contributors

jyihuo avatar devileee avatar

Watchers

 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.