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

Solucionado problema coa clasificación de datasets categóricos en FURIA

parent 17b80bee
...@@ -300,6 +300,7 @@ public class RuleBuilder { ...@@ -300,6 +300,7 @@ public class RuleBuilder {
vcomponent.addValue(new Coordinate(comp.getFourthFuzzyValue(), vcomponent.addValue(new Coordinate(comp.getFourthFuzzyValue(),
((NumericComponent) comp).retrieveValue(comp.getFourthFuzzyValue()))); ((NumericComponent) comp).retrieveValue(comp.getFourthFuzzyValue())));
} else { } else {
vcomponent.setValue(((CategoricComponent) comp).getValue());
vcomponent.addValue(new Coordinate(comp.getFirstFuzzyValue(), 0d)); vcomponent.addValue(new Coordinate(comp.getFirstFuzzyValue(), 0d));
vcomponent.addValue(new Coordinate(comp.getSecondFuzzyValue(), 1d)); vcomponent.addValue(new Coordinate(comp.getSecondFuzzyValue(), 1d));
vcomponent.addValue(new Coordinate(comp.getThirdFuzzyValue(), 1d)); vcomponent.addValue(new Coordinate(comp.getThirdFuzzyValue(), 1d));
...@@ -379,6 +380,7 @@ public class RuleBuilder { ...@@ -379,6 +380,7 @@ public class RuleBuilder {
((NumericComponent) comp).retrieveValue(comp.getFourthFuzzyValue()))); ((NumericComponent) comp).retrieveValue(comp.getFourthFuzzyValue())));
} }
} else { } else {
vcomponent.setValue(((CategoricComponent) comp).getValue());
/* /*
* Se añaden las coordenadas de la definición del intervalo: * Se añaden las coordenadas de la definición del intervalo:
* *
......
...@@ -64,7 +64,7 @@ public class InfoExtractorFURIA extends InfoExtractor { ...@@ -64,7 +64,7 @@ public class InfoExtractorFURIA extends InfoExtractor {
if (att.getType().equals("numericAtt")) if (att.getType().equals("numericAtt"))
property = att.getPropertyById(getLabelInterval(new Interval(c.getCoordinates().get(0).getX(), c.getCoordinates().get(3).getX()), (NumericAttribute) att)); property = att.getPropertyById(getLabelInterval(new Interval(c.getCoordinates().get(0).getX(), c.getCoordinates().get(3).getX()), (NumericAttribute) att));
else else
property = att.getPropertyByName(c.getId()); property = att.getPropertyByName(c.getValue());
labels.put(property.getName(), att.getName()); labels.put(property.getName(), att.getName());
} }
......
...@@ -30,6 +30,7 @@ public class VisualComponent { ...@@ -30,6 +30,7 @@ public class VisualComponent {
private String id; private String id;
private String attribute; private String attribute;
private String value;
private ArrayList<Coordinate> coordinates; private ArrayList<Coordinate> coordinates;
private ArrayList<Coordinate> activationCoordinates; private ArrayList<Coordinate> activationCoordinates;
private double activation; private double activation;
...@@ -50,6 +51,14 @@ public class VisualComponent { ...@@ -50,6 +51,14 @@ public class VisualComponent {
return id; return id;
} }
public void setValue(String value) {
this.value = value;
}
public String getValue() {
return value;
}
/** /**
* Grado de activación del componente * Grado de activación del componente
* *
......
...@@ -68,9 +68,6 @@ const styles = theme => ({ ...@@ -68,9 +68,6 @@ const styles = theme => ({
paddingRight: 20, paddingRight: 20,
height: "100%" height: "100%"
}, },
tabs: {
fontSize: "16px"
},
progress: { progress: {
margin: "auto", margin: "auto",
marginTop: 80, marginTop: 80,
......
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