Skip to content

Commit

Permalink
prepared version 1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro committed Apr 28, 2022
1 parent b5c1d37 commit 06f2280
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 17 deletions.
36 changes: 21 additions & 15 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions src/Cid3.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import kotlin.system.exitProcess


class Cid3 : Serializable {
private val version = "1.2.3"
private val version = "1.2.4"
private var createdWith = ""
enum class AttributeType {
Discrete, Continuous, Ignore
Expand Down Expand Up @@ -1595,7 +1595,7 @@ class Cid3 : Serializable {
}

//If an attribute name is passed just do that attribute
if (attributeName.isNotEmpty()){
if (attributeName.isNotEmpty() && attributeName != "Class" && attributeNames.contains(attributeName)){
var selectedAtt: Triple<Int,Double,Double> = Triple(0,0.0,0.0)
for (att in attributeImportance){
if (attributeNames[att.first] == attributeName) {
Expand All @@ -1605,6 +1605,10 @@ class Cid3 : Serializable {
}
attributeImportance.clear()
attributeImportance.add(selectedAtt)
} else {
print("\n")
print("Error: Attribute name not found.")
exitProcess(1)
}

val sortedList: List<Triple<Int, Double, Double>> = if (criteria == Criteria.Certainty)
Expand Down

0 comments on commit 06f2280

Please sign in to comment.