Skip to content

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

Closed
@gugatr0n1c

Description

@gugatr0n1c

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions