question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Models don't accept model_name, saving_path

See original GitHub issue

Describe the bug

Models don’t accept model_name, saving_path as initialization arguments.

What is the current behavior?

See above.

If the current behavior is a bug, please provide the steps to reproduce.

clf: TabNetClassifier = TabNetClassifier(saving_path="/home/user123/dev/", device_name="cpu")

Expected behavior

Models should accept model_name, saving_path as initialization arguments as specified in the documentation.

Screenshots

Other relevant information: poetry version:
python version: Operating System: Additional tools:

Additional context

On a related note: How can models be persisted? The mentioned init parameters strongly suggest that it is possible, but I couldn’t find any information on this - either in the documentation nor in the code.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:23 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
eduardocarvpcommented, Jun 9, 2020

Indeed, @Optimox , I have noticed that and I even probably have the change locally where I instantiate the network on class __init__(). I think it is better that way. I’m willing to work on this and I can also fix the model_name/saving_path on the way, It should be simple.

1reaction
Optimoxcommented, Jun 22, 2020

@DoDzilla-ai

Hello, well you are actually looking at the develop branch README (maybe we should find a way of defaulting the master branch) so mask_type is actually a new feature and not a deprecated one, but you if you installed the code from pip the you are using the master branch code which does not accept mask_type.

The same thing is happening with lr, we changed this recently in order to give more flexibility to final users.

The development branch always have some advanced features that the master branch does not get, they will match at the next release in the coming weeks. In the meantime please refer to the the master branch readme in order to get the current documentation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Saving h5 model by relative path - Keras tensorflow
How do we save a model to a relative file path using tensorflow embedded keras? model.save('/models/model.h5'). I tried: './models ...
Read more >
Save and load Keras models | TensorFlow Core
When saving the model and its layers, the SavedModel format stores the class name, call function, losses, and weights (and the config, if ......
Read more >
Model saving & serialization APIs - Keras
Saves the model to Tensorflow SavedModel or a single HDF5 file. Please see tf.keras.models.save_model or the Serialization and Saving guide for details.
Read more >
Saving and Loading Models (Coding TensorFlow) - YouTube
Training models can take a very long time, and you definitely don't want to have to retrain everything over a single mishap.
Read more >
Models - Django documentation
Each model is a Python class that subclasses django.db.models.Model . ... field names that conflict with the models API like clean , save...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found