Commit bf0c190b authored by Bruno López Trigo's avatar Bruno López Trigo

Solucionado erro na carga de explicacións ao cambiar de algoritmo

parent 05f37b54
......@@ -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
});
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment