haifengl on master
move ica package to smile.ica i… (compare)
haifengl on master
refactor KPCA remove Projection rename LinearProjection to Proj… (compare)
haifengl on master
extend DataFrame.toArray(column… refactor LinearProjection fix arpack and 2 more (compare)
haifengl on master
add KMedoidsImputer and remove … (compare)
haifengl on master
fix missing value detection bug (compare)
haifengl on master
refactor SVDImputer refactor LLSImputer refactor imputation test and 1 more (compare)
haifengl on master
move names()/type()/measures() … add KNNImputer (compare)
HI Everyone, sorry for the newbie question but I'm kinda stuck here and didn't find a good way to work around the problem.
Basically I'm just trying to create a DataFrame from a SQL query but I keep getting an error:
val url = "jdbc:postgresql://localhost/test"
val props = Properties()
props.setProperty("user", "test")
props.setProperty("password", "test")
val conn: Connection = DriverManager.getConnection(url, props)
val rs = conn.createStatement().executeQuery("select 1 from homes")
val df = DataFrame.of(rs)
println(df)
and the error:
Exception in thread "main" java.lang.IllegalArgumentException: No enum constant java.sql.JDBCType.int4
at java.base/java.lang.Enum.valueOf(Enum.java:240)
at java.sql/java.sql.JDBCType.valueOf(JDBCType.java:34)
at smile.data.type.DataTypes.struct(DataTypes.java:168)
at smile.data.type.DataTypes.struct(DataTypes.java:158)
at smile.data.DataFrame.of(DataFrame.java:1261)
I'm using org.postgresql:postgresql:42.2.12
Hi hifeng, I tried to use MultivariateGaussianMixture but have the following exception:
Warning: Could not load Loader: java.lang.UnsatisfiedLinkError: no jnijavacpp in java.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniopenblas_nolapack in java.library.path
I import the dependency in maven like this:
<dependency>
<groupId>com.github.haifengl</groupId>
<artifactId>smile-core</artifactId>
<version>2.5.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.bytedeco/javacpp -->
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>javacpp</artifactId>
<version>1.5.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.bytedeco/openblas -->
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>openblas</artifactId>
<version>0.3.9-1.5.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.bytedeco/arpack-ng -->
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>arpack-ng</artifactId>
<version>3.7.0-1.5.3</version>
</dependency>
new_col = lambda each_row: math.sqrt((3*each_row.first_column)**4 + (3*each_row.second_column)**4+ (3*each_row.third_column)**4)
my_dataframe.apply(new_col)
import smile.data.formula.Formula;
import static smile.data.formula.Terms.*;
df.stream().map(row -> {
or something?
The response variable Classification doesn't exist in the schema [...]
. Should I pay attention to this message? How do I get rid of it?
sterr = true
smile.validation.metric
package. The classification algorithms report posteriori probabilities if they are SoftClassifier
. Some algorithms also have a score()
method, which is not necessarily probabilities though.