kind of big changes here: we can now inspect & see the most positive and negative words for a trained svm, to help tune the value C. then there is also the UI for setting value C in the SVM. Finally the value of C I adjusted to default to 0.01 (was 0.1 before) because the results and the weights look more sensible based on manual inspection. We need some dataset of people libraries in order to potentially cross-validate a good value C automatically. For now there are not enough active users of the site that such a thing could be attempted and succeed. Doing my best now just by eyeballing
This commit is contained in:
@@ -80,12 +80,16 @@ const TagList = props => {
|
||||
const tlst = lst.map((jtag, ix) => <Tag key={ix} tag={jtag} />);
|
||||
const deleter = () => fetch("/del/" + prompt("delete tag name:"))
|
||||
.then(response => console.log(response.text()));
|
||||
// show the #wordwrap element if the user clicks inspect
|
||||
const show_inspect = () => { document.getElementById("wordwrap").style.display = "block"; };
|
||||
const inspect_elt = words.length > 0 ? <div id="inspect_svm" onClick={show_inspect}>inspect</div> : null;
|
||||
return (
|
||||
<div>
|
||||
<div class="rel_tag" onClick={deleter}>-</div>
|
||||
<div id="tagList" class="rel_utags">
|
||||
{tlst}
|
||||
</div>
|
||||
{inspect_elt}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user