Giter Club home page Giter Club logo

kuma_utils's Introduction

Hiroshi Yoshihara

a.k.a. RabotniKuma, 吉原浩之

  • Kaggle Competitions Grandmaster
  • Machine learning engineer @ Aillis Inc.
  • Ph.D. candidate @ Dept. of Health Informatics, Kyoto University
  • Researcher @ Dept. of Health Economics and Outcomes Research, the University of Tokyo

Links | LinkedIn | Twitter | Kaggle | Instagram | Portfolio |

RabotniKuma's profile

kuma_utils's People

Contributors

analokmaus avatar dependabot[bot] 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

kuma_utils's Issues

LGBMImputer, add tqdm

Hello! Would you accept a PR? I use LGBMImputer on large datasets (>>1000 columns) and I'd like to wrap the loop over columns in tqdm.

Missing columns on test set

In my project, I have implemented the LGBMImputer in your package for data imputation. And as usual, I first fit and transform the train set, then transform the test set.

ISSUE: The columns with missing data in my train set and in test set are different and it appears that the "fit" function only train model and regress on the feature_with_missing of train data, and left several other columns in test set with data still missing if those columns is not in the feature_with missing from train set.

The solution I have applied in my project is to 'fit' regression on all train columns, and 'transform' feature missing (see attachment for my changed codes).
I'm not yet adept in coding, still, I'd imagine it may increase the execution time so I will leave this issue here for any better solution.

imputer.txt

Error : Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()

I used your module for a project and it returned an error : "Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()".

The error comes from the line : self.feature_with_missing = [ col for col in self.feature_names if X[col].isnull().sum() > 0]

Replacing it with :

nan_count = X.isna().sum()
self.feature_with_missing = nan_count[nan_count > 0].index.tolist()

solves the issue

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.