Git Product home page Git Product logo

kdd-cup-2013-ntu-track1's Introduction

KDD CUP 2013 - Track 1

License

Copyright 2013 Cheng-Xia Chang, Wei-Cheng Chang, Wei-Sheng Chin, Kuan-Hao Huang, Yu-Chin Juan, Tzu-Ming Kuo, Chun-Liang Li, Chih-Jen Lin, Hsuan-Tien Lin, Shan-Wei Lin, Shou-De Lin, Ting-Wei Lin, Young-San Lin, Yu-Chen Lu, Yu-Chuan Su, Cheng-Hao Tsai, Hsiao-Yu Tung, Jui-Pin Wang, Cheng-Kuang Wei, Felix Wu, Chun-Pai Yang, Tu-Chun Yin, Tong Yu, and Yong Zhuang

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Environment

a. The hardware / OS platform you used

Intel(R) Xeon(R) CPU X5690 @ 3.47GHz/ Ubuntu 10.04.4

b. Any necessary 3rd-party software (+ installation steps)

  1. c++ source code require c++11 support

  2. Java 1.7.0_25 Package: Jforest (included in this package)

  3. Python 2.7.5 and 3.3

python -> 2.7.5 and python3 -> 3.3

Python depencecy:

(1) pandas-0.10.1

(2) sklearn 0.14-git

(3) jellyfish 0.1.2

(4) nltk 2.0

How to train models

  1. Type "make" to create necessary directories and compile codes.

  2. Set paths in SETTINGS.json

  3. Put all raw data into the directory "TRAIN_DATA_DIR_PATH".

  4. Run train.py

Because the size of random forest model is very large, we choose not to save it. Therefore, the training and prediction process of random forest are both in predict.py.

How to make predictions on a new test set

  1. Set paths in SETTINGS.json

  2. Run predict.py

Paths in SETTING.json

All paths are relative paths to the top level directory.

"TRAIN_DATA_DIR_PATH" describes the path to the raw data directory. Our default raw data directory is "raw_data". There are two choices to set up data. One is to put all data in "raw_data", and the other is to set the path to the directory you put the data in.

"SUBMISSION_PATH" describes the path of output file. The format follows the spec defined by Kaggle.

kdd-cup-2013-ntu-track1's People

Contributors

kdd-cup-2013-ntu avatar

Watchers

James Cloos avatar wei zhao 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.