Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python] Prediction phase - get Warning: model has no end of line, still using this line #1012

Closed
gugatr0n1c opened this issue Oct 23, 2017 · 1 comment

Comments

@gugatr0n1c
Copy link

Environment info

Operating System: Win10
C++/Python/R version: Python 3.5.2 Anaconda

Warning Message:

[LightGBM] [Info] Warning: last line of C:\path_to_model/model.txt has no end of line, still using this line

Hi,

in prediction phase I still get this warning. I did not modify model manually.
Model was built on same platform as it is used for prediction = Win10, 64bit, Python 3.5.2 Anaconda.
Predicition is calculated corretly, I am just wondering why this warning is shwing up and if this can regress speed of prediction.

Model here, be ware of model is 37 MB big:
https://www.dropbox.com/s/ly9ztlebz204wt4/model.txt?dl=0

Prediction code is:

model = lg.Booster(model_file = workingDir + sub_dir + 'model.txt')
prediction = model.predict(matrix)

Thx

@wxchan
Copy link
Contributor

wxchan commented Oct 23, 2017

The last line in python is to store pandas categorical feature, you can ignore it.

wxchan pushed a commit to wxchan/LightGBM that referenced this issue Oct 26, 2017
* update atof

* fix bug

* fix tests.

* fix bug

* fix dtypes

* fix categorical feature override

* fix protobuf on vs build (microsoft#1004)

* [optional] support protobuf

* fix windows/LightGBM.vcxproj

* add doc

* fix doc

* fix vs support (#2)

* fix vs support

* fix cmake

* fix microsoft#1012

* [python] add network config api  (microsoft#1019)

* add network

* update doc

* add float tolerance in bin finder.

* fix a bug

* update tests

* add double torelance on tree model

* fix tests

* simplify the double comparison

* fix lightsvm zero base

* move double tolerance to the bin finder.

* fix pylint
guolinke pushed a commit that referenced this issue Nov 9, 2017
* add init_score & test cpp and python result consistency

* try fix common.h

* Fix tests (#3)

* update atof

* fix bug

* fix tests.

* fix bug

* fix dtypes

* fix categorical feature override

* fix protobuf on vs build (#1004)

* [optional] support protobuf

* fix windows/LightGBM.vcxproj

* add doc

* fix doc

* fix vs support (#2)

* fix vs support

* fix cmake

* fix #1012

* [python] add network config api  (#1019)

* add network

* update doc

* add float tolerance in bin finder.

* fix a bug

* update tests

* add double torelance on tree model

* fix tests

* simplify the double comparison

* fix lightsvm zero base

* move double tolerance to the bin finder.

* fix pylint

* clean test.sh

* add sklearn test

* remove underline

* clean codes

* set random_state=None

* add last line

* fix doc

* rename file

* try fix test
@lock lock bot locked as resolved and limited conversation to collaborators Mar 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants