init research

This commit is contained in:
2026-02-08 11:20:43 -10:00
commit bdf064f54d
3041 changed files with 1592200 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
(ns tech.v3.dataset.main
(:require [tech.v3.dataset :as ds]
[tech.v3.datatype.functional :as dfn]
[tech.v3.libs.arrow :as arrow]
[clojure.tools.logging :as log])
(:gen-class))
(defn -main
[& args]
;;Load larray. Note this implies a pre-build step -- unpack-larray
(let [libname (format "%s/resources/%s"
(System/getProperty "user.dir")
(System/mapLibraryName "larray"))]
(log/infof "Loading shared library: %s" libname)
(System/load libname))
(let [test-ds (ds/->dataset "test/data/stocks.csv")]
(println test-ds)
(println (dfn/mean (test-ds "price")))
(arrow/write-dataset-to-stream! test-ds "stocks.arrow")
(println (dfn/mean ((arrow/read-stream-dataset-inplace "stocks.arrow") "price")))
0))