Code Monkey home page Code Monkey logo

Comments (8)

sergioburdisso avatar sergioburdisso commented on May 20, 2024 1

I've just finished making those changes and released the new version (0.5.9). I've also updated the notebook adding a section for "Hyperparameter Optimization". Try performing hyperparameter optimization similar to what I did in that notebook and let me know. In case you are still getting bad accuracy, please share some more details, like part of the actual code, the actual accuracy before and after the changes, etc. It would be much easier to try to help that way. I hope you achieve great accuracy again 😢 🤞 🍀

from pyss3.

sergioburdisso avatar sergioburdisso commented on May 20, 2024

Hi @enthussb!
Sure, I overlooked this option when first coding the Live Test tool. Thank you for your suggestion :)

I've added this feature in the new version, and also took the opportunity to incorporate some other things that were pending, namely, what's new on this version is:

  • The Live Test Tool now supports custom (user-defined) preprocessing methods (b50cfaf, resolved #3).
  • The tokenization process was improved (26fff88, 4af8e80).
  • The process for recognizing word n-grams during classification was improved (2ceb148).

Update your package version using the pip install -U pyss3 to the new version (0.5.8). To make things easier for you, I've created a new Jupyter Notebook in the examples folder in which is shown how to work incorporate user-defined preprocessing functions to the Live Test tool visualizations for you to follow if you want: using_custom_preprocessing.ipynb

Let me know if everything worked OK ☕

from pyss3.

sergioburdisso avatar sergioburdisso commented on May 20, 2024

@all-contributors would you add @enthussb for ideas to the README file? it helped to make this project better by suggesting this cool feature 👍

from pyss3.

allcontributors avatar allcontributors commented on May 20, 2024

@sergioburdisso

I've put up a pull request to add @enthussb! 🎉

from pyss3.

enthussb avatar enthussb commented on May 20, 2024

@sergioburdisso I updated the package and ran the code. Everything is working fine, although my accuracy has been reduced quite a bit. I guess it might be due to the latest n-gram and tokenization changes. Could you please have a look at that?

from pyss3.

sergioburdisso avatar sergioburdisso commented on May 20, 2024

I was about to tell you to perform a hyperparameter optimization using the Evaluation.grid_search() function but then I realized that I didn't include a "prep" argument to disable the default preprocessing. As a consequence, users won't be able to perform any hyperparameter optimization using only their custom preprocessing method. I'll work on that and add the "prep" parameter to the grid_search(), test, and kfold_cross_validation functions of the Evaluation class. I'm sorry for forgetting to add this in the first place 😢. I'll notify you as soon as the new version is released.

from pyss3.

enthussb avatar enthussb commented on May 20, 2024

Okay no problem 👍, till then I can work on the previous version where I had achieved great accuracy!

from pyss3.

enthussb avatar enthussb commented on May 20, 2024

Sure I will check the updated package and revert.

from pyss3.

Related Issues (20)

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.