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