rshchekotov / whats-this

Text Classification Tool
GNU General Public License v3.0
1 stars 0 forks source link

Ability to add new cloud or add entries to cloud #6

Closed Madcap3000 closed 1 year ago

Madcap3000 commented 1 year ago

Have the ability to compare the prior AI state to the state after adding new data points to cloud and be able to judge the result or improve it

rshchekotov commented 1 year ago

The ability to do it is there now - implemented on the backend and accessed by the frontend, the only thing that is left to implement (the core part of the idea, really) is the diff-view.

At the moment, the backend offers the following API for Cloud and Sample manipulation:

/* Returns the available cloud names */
Monitor.cloudKeys()

/* Returns the cloud-object given the name */
Monitor["name"]
Monitor.get("name")

/* Create an empty cloud given the name */
Monitor.cloud("name")

/* Check whether a cloud with the given name exists */
Monitor.contains("name")
"name" in Monitor
/* Returns the available cache/sample keys */
Monitor.cacheKeys()

/* Returns a (null, if not present) value corresponding to the sample name */
Monitor.loadFromCache("name")

/* Add a data entry to the 'cache', which contains all (even 'classified') entries and acts a SSoT */
Monitor.addToCache("name", data)

/* Remove from Cache (not from potential classes, if classified) */
Monitor.removeFromCache("name")