Git Product home page Git Product logo

Comments (12)

edward-edberg avatar edward-edberg commented on August 24, 2024

@monajalal @davidatbu this method contradicts with the current one. I still don't know how to do it subtly.

from openframing.

edward-edberg avatar edward-edberg commented on August 24, 2024

I think we have to do it in the backend. Frontend modification is kind of limited.

from openframing.

dnaaun avatar dnaaun commented on August 24, 2024

Hi @edward-edberg,

I don't see how modifying the backend will help with this. The backend already sends an email when training finishes, and then another one when predicting finishes.

I understand what you are saying in that, in the frontend, this is not possible if the user is going to upload training dataset and the unlabeled dataset at the same time. But, if we have different pages for the two, imagine this:

The user goes to www.openframing.org/train_a_classifier.html
He gets an email when training finishes at www.openframing.org/predict_with_classifier.html?classifier_id=<SOME_ID>

On the frontend, the JS inside predict_with_classifier.html will grab the <SOME_ID> from the URL(this is possible, and this is what we do for topic modeling previewing already), and then it will let the user upload testing data.

And then we send an email to the user with the results.

from openframing.

edward-edberg avatar edward-edberg commented on August 24, 2024

Okay, but how about if the client wants to use default classifier? They will upload the test file in the first place, right?
If we want to implement a new mechanism that you have mentioned, then we will separate training from scratch page and testing-only page.

from openframing.

dnaaun avatar dnaaun commented on August 24, 2024

from openframing.

edward-edberg avatar edward-edberg commented on August 24, 2024

@davidatbu I have a question, how do you provide unique link for each task to upload test file?

from openframing.

dnaaun avatar dnaaun commented on August 24, 2024

from openframing.

edward-edberg avatar edward-edberg commented on August 24, 2024

@davidatbu ok, you can provide me topic_model_id, then how can I get that topic_model_id? since I have to make post request

from openframing.

edward-edberg avatar edward-edberg commented on August 24, 2024

parse the url? or do you have any suggestion? because I have never done this before

from openframing.

dnaaun avatar dnaaun commented on August 24, 2024

Here's how we do it in topicModelPreviews.html

Here's the function:

https://github.com/davidatbu/openFraming/blob/2642424f43c481ee3bf178b161fb41cc1f3ff34a/services/web/frontend/js/topicModelPreview.js#L43-L55

Here's how we call it.
https://github.com/davidatbu/openFraming/blob/2642424f43c481ee3bf178b161fb41cc1f3ff34a/services/web/frontend/js/topicModelPreview.js#L74-L75

from openframing.

edward-edberg avatar edward-edberg commented on August 24, 2024

My code looks terrible compared to this lol.
Got it. I think I can build them.

from openframing.

dnaaun avatar dnaaun commented on August 24, 2024

from openframing.

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.