GithubHelp home page GithubHelp logo

dnc1994 / kaggle-playground Goto Github PK

View Code? Open in Web Editor NEW
196.0 10.0 65.0 780 KB

Jupyter notebooks and code examples for my Kaggle Beginners' Guide.

Home Page: https://dnc1994.github.io/2016/05/rank-10-percent-in-first-kaggle-competition-en/

License: MIT License

Jupyter Notebook 74.67% Python 25.33%

kaggle-playground's Introduction

Kaggle-Playground

After I finished the Home Depot competition, I wrote a summary as a beginners' guide to Kaggle. It got retweeted by Kaggle's official account.

In this repo you can find details about how I preprocessed the dataset, constructed features, trained different models and finally built the stacked ensemble. Main files are features.ipynb and ensemble.py.

Feel free to suggest how to improve it!

Acknowledgements

Author

Linghao Zhang

License

MIT license

kaggle-playground's People

Contributors

dnc1994 avatar zxybazh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kaggle-playground's Issues

df_lev_dist_more_jaccard.csv问题

看到Preprocess.ipynb中有这句代码append = pd.read_csv('df_lev_dist_more_jaccard.csv', encoding='ISO-8859-1'),运行中报错,请问df_lev_dist_more_jaccard.csv这个文件从哪来的?

请问开发方式(文件结构)

我看到您的文件夹里除了ipynb 还有.py文件

请问您是如何让它们一起工作的。

在其他IDE里调试好 再复制进jupyter运行吗?

A problem in 'match_commercial'

In your features.ipynb:

In [24]:
df['match_commercial'] = (df['search_term'].str.lower().str.contains('commercial') & df['flag_commercial']).astype(np.float)
In [25]:
sum(df['match_commercial'])
Out[25]:
350.0

If df['search_term'] contains 'commercial', and df['flag_commercial'] == -1, it will return 1, is it what you expected?

Since True & (-1) will return 1.

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.