altavir
12/28/2021, 6:04 PMholgerbrandl
01/01/2022, 5:05 PMaltavir
01/02/2022, 10:48 AMholgerbrandl
01/03/2022, 8:35 AMDouble.MAX_VALUE-1< Double.MAX_VALUE
is wrong on the JVM (because of limited precision) although it is conceptually true. But what's the largest Double
for which the assumption holds also on the JVM?Hampus Londögård
01/04/2022, 3:27 PMholgerbrandl
01/04/2022, 4:12 PMaltavir
01/05/2022, 1:20 PMholgerbrandl
01/06/2022, 3:52 PMHampus Londögård
01/06/2022, 6:11 PM@tensorflow/tfjs
from KotlinJS?holgerbrandl
01/09/2022, 12:39 PMholgerbrandl
01/09/2022, 10:26 PMClass.forName("jupyter.kotlin.KotlinContext")
to test if my code is running within the jupyter kernel. But with the improved integration via kotlin-jupyter-api-0.11.0-45.jar
this test does no longer work, because the jar ships with the KotlinContext
. How could I now perform such a test?holgerbrandl
01/10/2022, 7:13 AMholgerbrandl
01/11/2022, 10:48 AMthomasnield
01/11/2022, 9:56 PMHampus Londögård
01/13/2022, 12:36 PMthomasnield
01/14/2022, 2:25 AMthomasnield
01/22/2022, 5:04 AMCarter
01/26/2022, 5:20 PMHampus Londögård
01/31/2022, 6:51 AMhttps://user-images.githubusercontent.com/7490199/151235880-2546faa6-5798-48b4-84b9-db71c20808d8.gif▾
hfhbd
02/04/2022, 11:27 AMelect
03/03/2022, 1:42 PMCarter
03/04/2022, 12:22 PM@file:DependsOn("org.jetbrains.kotlinx:kotlinx-datetime:0.3.2")
%useLatestDescriptors
%use lets-plot
import java.util.Random
import kotlinx.datetime.Instant
Running that yields the error Line_214.jupyter-kts (6:25 - 32) Unresolved reference: Instant
What am I missing?Carter
03/05/2022, 2:22 PMCarter
03/05/2022, 11:31 PMAlexandre Brown
04/01/2022, 7:15 PMAlexandre Brown
04/03/2022, 5:45 AMmk.ndarray(it, batchSize, 3, targetHeight, targetWidth)
I tried chunking it to batches of 4 but I still hit 5GB RAM usage from this lineIcyrockton
04/13/2022, 7:29 AMfun main() {
withSpark {
dsOf(c(1, 2, 0.4f), c(2, 2, 0.5f)).map {
ALS.Rating(it._1, it._2, it._3)
}.show()
}
}
Exception in thread "main" java.lang.ClassCastException: kotlin.reflect.jvm.internal.KTypeImpl cannot be cast to kotlin.jvm.internal.TypeReference
Peter
04/14/2022, 1:34 PMPeter
04/16/2022, 4:00 PMJupyterReplTestCase
since a long time to automate some regression testing of notebooks and it always worked fine.
But now I’m trying slightly different setup with a lib.json file containing some imports (before this was handled by JupyterIntegration
) and I cannot get it to work.
In my notebook:
%use roboquant@url[<https://roboquant.org/roboquant.json>]
In my unit test:
class NotebookTester() : JupyterReplTestCase(ReplProvider.forLibrariesTesting(listOf("roboquant"))) { ... }
But if I try this, the imports that are defined in the roboquant.json are ignored. Anyone know what I’m doing wrong or how I can get the imports in the roboquant.json files to be used for my unit test (other then specifying them explicitly in my notebooks) ?Iaroslav Postovalov
04/21/2022, 11:28 AMprovided
or compile
?Iaroslav Postovalov
04/21/2022, 11:28 AMprovided
or compile
?Ilya Muradyan
04/21/2022, 11:32 AMprovided
.Iaroslav Postovalov
04/21/2022, 11:32 AM