Giter Club home page Giter Club logo

mlframework's Issues

โ“ License

Hi Abhishek,
I was watching your mlframework videos (thanks for them btw!) and coding along, when I saw that this repo doesn't have a license. I wanted to use this framework for some of my own projects, so I was wondering if you could add one if possible?

Conda env create -f environment.yml RESOLVEPACKAGENOTFOUND

Hi All,
I am trying to replicate this environment in my system. I was following the steps indicated in the book. Approaching any Machine Learning Problem.
I tried running the following the command and was receiving the following error.
I have never worked with Anaconda.
It would be great if someone can help me out.

Screenshot 2020-08-06 at 12 55 17 AM

uneven folds

When I ran the create_folds.py script I got uneven folds, structurally unlike what you obtained. I didn't change your code so I am not sure what is the underlying problem.

Screen Shot 2020-01-07 at 4 03 11 PM

The first and last folds have this one hanging.

int() argument error

File "../src/train.py", line 12, in
FOLD = int(os.environ.get("FOLD"))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

I am having this issue.
Can anyone provide any solution?
TIA

y contains previously unseen labels

After executing this command "sh run.sh randomforest", I got the following error messages.

Traceback (most recent call last):
File "/opt/anaconda3/envs/kaggle/lib/python3.8/runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/anaconda3/envs/kaggle/lib/python3.8/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/Users/ekaratrattagan/Program/Course/machine_learning/kaggle/e01/src/train.py", line 45, in
train_df.loc[:, c] = lbl.transform(train_df[c].values.tolist())
File "/opt/anaconda3/envs/kaggle/lib/python3.8/site-packages/sklearn/preprocessing/_label.py", line 273, in transform
_, y = encode(y, uniques=self.classes, encode=True)
File "/opt/anaconda3/envs/kaggle/lib/python3.8/site-packages/sklearn/preprocessing/_label.py", line 117, in _encode
return _encode_numpy(values, uniques, encode,
File "/opt/anaconda3/envs/kaggle/lib/python3.8/site-packages/sklearn/preprocessing/_label.py", line 49, in _encode_numpy
raise ValueError("y contains previously unseen labels: %s"
ValueError: y contains previously unseen labels: [nan, nan, nan, nan, nan, nan, nan, nan, ....

I then fixed it by adding the following two lines,
train_df[c].replace(np.nan, 'NAN', inplace=True)
valid_df[c].replace(np.nan, 'NAN', inplace=True)

,after for c in train_df.columns: and before lbl = preprocessing.LabelEncoder()
in train.py

label_encoders = {}
for c in train_df.columns:
train_df[c].replace(np.nan, 'NAN', inplace=True)
valid_df[c].replace(np.nan, 'NAN', inplace=True)

lbl = preprocessing.LabelEncoder()

After that, it worked perfectly.

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.