-
Notifications
You must be signed in to change notification settings - Fork 268
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
How to release memory or free gpu. #70
Comments
|
Also, in terms of the mapping between integers and class names, if the labels in the array supplied as input to texts = ['I like this movie.', 'I hate this movie,'] Running the labels through This is what P.S. Thanks for the nice comments. |
First of all, alot of thanks for creating such an amazing repo, i wish i could find it earlier, but it does not appear in google search , luckily found it in a blog and its amazing.
I am having some issues mentioned below
How to clear gpu. for example in keras there is
keras.backend.clear_session
. I tried model.destroy(), but that does not work..How labels are mapped with target name.
For example, in this notebook lables are in form of integers, and
classes
in the piece of codet = text.Transformer(MODEL_NAME, maxlen=500, classes=train_b.target_names)
are just name. So how a particular lablel let say 0 comes to know that this is xyz class and label 1 is abc class.How can i change the loss function.
How to get probability on test data, while using
predictor = ktrain.get_predictor(learner.model, preproc=t) y_pred=predictor.predict(x_val.tolist())
The text was updated successfully, but these errors were encountered: