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