Skip to content

Commit

Permalink
Upgraded KotlinDL version and refactor Titanic in IDEA example (#260)
Browse files Browse the repository at this point in the history
* Added uncompiled version

* Set up the Java 11 for sources of this example due to the lowest JDK 11 in KotlinDL
  • Loading branch information
zaleslaw authored Feb 16, 2023
1 parent 0eb1b6e commit 7328ad0
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions examples/idea-examples/titanic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ application.mainClass.set("org.jetbrains.kotlinx.dataframe.examples.titanic.ml.T

dependencies {
implementation(project(":core"))
implementation("org.jetbrains.kotlinx:kotlin-deeplearning-api:0.4.0")
implementation("org.jetbrains.kotlinx:kotlin-deeplearning-dataset:0.4.0")
implementation("org.jetbrains.kotlinx:kotlin-deeplearning-api:0.5.1")
implementation("org.jetbrains.kotlinx:kotlin-deeplearning-impl:0.5.1")
implementation("org.jetbrains.kotlinx:kotlin-deeplearning-tensorflow:0.5.1")
implementation("org.jetbrains.kotlinx:kotlin-deeplearning-dataset:0.5.1")
}

// Make IDE aware of the generated code:
kotlin.sourceSets.getByName("main").kotlin.srcDir("build/generated/ksp/main/kotlin/")


dataframes {
schema {
data = "src/main/resources/titanic.csv"
Expand All @@ -28,3 +31,12 @@ dataframes {
}
}
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}

tasks.withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_11.toString()
targetCompatibility = JavaVersion.VERSION_11.toString()
}

0 comments on commit 7328ad0

Please sign in to comment.