init research
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
application
|
||||
kotlin("jvm")
|
||||
|
||||
id("org.jetbrains.kotlinx.dataframe")
|
||||
|
||||
// only mandatory if `kotlin.dataframe.add.ksp=false` in gradle.properties
|
||||
id("com.google.devtools.ksp")
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
mavenLocal() // in case of local dataframe development
|
||||
}
|
||||
|
||||
application.mainClass = "org.jetbrains.kotlinx.dataframe.examples.titanic.ml.TitanicKt"
|
||||
|
||||
dependencies {
|
||||
// implementation("org.jetbrains.kotlinx:dataframe:X.Y.Z")
|
||||
implementation(project(":"))
|
||||
|
||||
// note: needs to target java 11 for these dependencies
|
||||
implementation("org.jetbrains.kotlinx:kotlin-deeplearning-api:0.5.2")
|
||||
implementation("org.jetbrains.kotlinx:kotlin-deeplearning-impl:0.5.2")
|
||||
implementation("org.jetbrains.kotlinx:kotlin-deeplearning-tensorflow:0.5.2")
|
||||
implementation("org.jetbrains.kotlinx:kotlin-deeplearning-dataset:0.5.2")
|
||||
}
|
||||
|
||||
dataframes {
|
||||
schema {
|
||||
data = "src/main/resources/titanic.csv"
|
||||
name = "org.jetbrains.kotlinx.dataframe.examples.titanic.ml.Passenger"
|
||||
csvOptions {
|
||||
delimiter = ';'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
kotlin {
|
||||
compilerOptions {
|
||||
jvmTarget = JvmTarget.JVM_11
|
||||
freeCompilerArgs.add("-Xjdk-release=11")
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<JavaCompile> {
|
||||
sourceCompatibility = JavaVersion.VERSION_11.toString()
|
||||
targetCompatibility = JavaVersion.VERSION_11.toString()
|
||||
options.release.set(11)
|
||||
}
|
||||
Reference in New Issue
Block a user