I have the following code:
val X: Array[Float] = x.toFloatArray()
val Y = y.toFloatArray()
val data = Table.create("Data").addColumns(
FloatColumn.create("X", X),
FloatColumn.create("relu(x)", Y)
)
which results in:
[error] -- [E134] Type Mismatch Error: /home/hmf/VSCodeProjects/pdm_toyadmos/dcase2020/src/examples/djl/Chap4MLP.scala:46:20
[error] 46 | FloatColumn.create("X", X),
[error] | ^^^^^^^^^^^^^^^^^^
[error] |None of the overloaded alternatives of method create in object FloatColumn with types
[error] | (x$0: String, x$1: java.util.stream.Stream[Float]):
[error] | tech.tablesaw.api.FloatColumn
[error] | (x$0: String, x$1: Array[Float]): tech.tablesaw.api.FloatColumn
[error] | (x$0: String, x$1: Int): tech.tablesaw.api.FloatColumn
[error] | (x$0: String, x$1: Float*): tech.tablesaw.api.FloatColumn
[error] | (x$0: String): tech.tablesaw.api.FloatColumn
[error] |match arguments (("X" : String), (X : Array[Float]))
But the first option seems to match perfectly. Any way I can force this?
TIA