-
Notifications
You must be signed in to change notification settings - Fork 2
adds simple first views on model callbacks #51
Conversation
Run this together with: You can add a model callback using the Python SDK in branch from refinery import Client
user_name = "your-mail" # this is the email you log in with
password = "your-pw"
project_id = "your-clickbait-sample-project-id" # can be found in the URL of the web application
client = Client(user_name, password, project_id, uri="http://localhost:4455")
from sklearn.linear_model import LogisticRegression
clf = LogisticRegression()
from refinery.adapter.sklearn import build_classification_dataset
data = build_classification_dataset(client, "headline", "__clickbait", "distilbert-base-uncased", num_train=50)
clf.fit(data["train"]["inputs"], data["train"]["labels"])
from refinery.callbacks.sklearn import SklearnCallback
callback = SklearnCallback(
client,
clf,
"clickbait",
)
callback.run(data["train"]["inputs"], data["train"]["index"])
callback.run(data["test"]["inputs"], data["test"]["index"]) |
src/app/model-callbacks/components/model-callbacks.component.html
Outdated
Show resolved
Hide resolved
src/app/model-callbacks/components/model-callbacks.component.html
Outdated
Show resolved
Hide resolved
websocket integration seems to be missing for stats - weren't refreshed on the overview page until I refreshed manually)
|
no option to change the comment or the name of the information source
|
Maybe a UX issue we don't have to solve now. For me the usage/integration feels a bit weird. Also for clarity/differentiation, it might be a good idea to have a model page with callbacks & weak supervision combined (since weak supervision is basically our model and we want to compare it to a production model). Would also help to differentiate between the gravity of the results and give us the nice stat overview for the weak supervision :) Another thing to help me identify it for what it is could be to add a hint in the databrowser or a graying it out if no model callback is present in the project.
|
No description provided.