Code Monkey home page Code Monkey logo

Comments (5)

rkrishna116 avatar rkrishna116 commented on June 3, 2024 11

As a quick work around.

Go to the location, where the library is installed.

For me it was : "C:\Users\user_name\Anaconda3\envs\project_3\Lib\site-packages\smogn" and open smoter.py through notepad/notepad++ and replace the following:

    for j in range(d):
        data_new.iloc[:, j] = data_new.iloc[:, j].astype(feat_dtypes_orig[j])

with

    for j in range(d):
        data_new=data_new.fillna(data_new.median())
        data_new.iloc[:, j] = data_new.iloc[:, j].astype(feat_dtypes_orig[j])

This should fix the issue until the issue is fixed by the dev.

Note - I filled NAs with median, because it worked for me.

from smogn.

mplutat avatar mplutat commented on June 3, 2024 2

Unfortunately I could not solve the issue. I had to stay with my naive implementation of dropping columns containing nan values, which was only meant to be a backup solution.

from smogn.

nickkunz avatar nickkunz commented on June 3, 2024

@mplutat Hello and thank you for raising this issue. Is there some you could provide to reproduce the problem? This sounds like it might be an issue with the DataFrame. However, I cannot tell from this alone.

Also, I would not be able to responsibly comment on the affect of simply removing missing values, as I have not seen the distribution / change in distribution.

from smogn.

mplutat avatar mplutat commented on June 3, 2024

I'm sorry for the delay. It took longer than expected to find and export affected DataFrames.
Anyway I indentified one bin which when over-sampled contains missing values in the synthetic DataFrame.
I have attached the input and resampled bin DataFrames to this comment. In case the given DataFrames are not thorough enough I have also attached the complete input DataFrame containing all values.
Thank you very much for your help.
dataframes.zip

from smogn.

JusciAvelino avatar JusciAvelino commented on June 3, 2024

Managed to solve?
I have the same problem.

from smogn.

Related Issues (20)

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.