...
 
Commits (2)
...@@ -194,9 +194,9 @@ class ClassifierPanel extends Component { ...@@ -194,9 +194,9 @@ class ClassifierPanel extends Component {
this.getTree(), this.getTree(),
this.getMatrix("cv"), this.getMatrix("cv"),
this.getMatrix("train"), this.getMatrix("train"),
this.getMatrix("test"), this.getMatrix("test")
this.updateExplanations()
]).then(() => { ]).then(() => {
this.updateExplanations();
this.setState({ this.setState({
loading: false loading: false
}); });
...@@ -205,9 +205,9 @@ class ClassifierPanel extends Component { ...@@ -205,9 +205,9 @@ class ClassifierPanel extends Component {
Promise.all([ Promise.all([
this.getTree(), this.getTree(),
this.getMatrix("cv"), this.getMatrix("cv"),
this.getMatrix("train"), this.getMatrix("train")
this.updateExplanations()
]).then(() => { ]).then(() => {
this.updateExplanations();
this.setState({ this.setState({
loading: false loading: false
}); });
...@@ -217,9 +217,9 @@ class ClassifierPanel extends Component { ...@@ -217,9 +217,9 @@ class ClassifierPanel extends Component {
this.getRules(), this.getRules(),
this.getMatrix("cv"), this.getMatrix("cv"),
this.getMatrix("train"), this.getMatrix("train"),
this.getMatrix("test"), this.getMatrix("test")
this.getGlobalExplanation()
]).then(() => { ]).then(() => {
this.updateExplanations();
this.setState({ this.setState({
loading: false loading: false
}); });
...@@ -228,9 +228,9 @@ class ClassifierPanel extends Component { ...@@ -228,9 +228,9 @@ class ClassifierPanel extends Component {
Promise.all([ Promise.all([
this.getRules(), this.getRules(),
this.getMatrix("cv"), this.getMatrix("cv"),
this.getMatrix("train"), this.getMatrix("train")
this.getGlobalExplanation()
]).then(() => { ]).then(() => {
this.updateExplanations();
this.setState({ this.setState({
loading: false loading: false
}); });
...@@ -261,7 +261,7 @@ class ClassifierPanel extends Component { ...@@ -261,7 +261,7 @@ class ClassifierPanel extends Component {
async getTree() { async getTree() {
var response; var response;
if (this.state.classifications) { if (this.state.values) {
response = await getClassifications( response = await getClassifications(
this.props.dataset, this.props.dataset,
this.state.algorithm, this.state.algorithm,
...@@ -305,6 +305,7 @@ class ClassifierPanel extends Component { ...@@ -305,6 +305,7 @@ class ClassifierPanel extends Component {
this.setState({ this.setState({
alternativeIndex: 0, alternativeIndex: 0,
alternatives, alternatives,
classifications: response.data,
solutions solutions
}); });
} }
......