File tree Expand file tree Collapse file tree 5 files changed +18
-10
lines changed
Expand file tree Collapse file tree 5 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 11# Changelog
2+ # 8.001
3+ * Moved to new hamf,dtype using the hamf protocols. See hamf's defprotocol namespace for reasons. If you are
4+ extending dataset protocols via extend, extend-type or extend-protocol you need to use defprotocol's drop-in
5+ replacements as opposed to clojure's default implementations.
6+
27# 7.067
38 * : disable-na-as-missing for fixed types too
49 * new ` maximum ` reducer for reductions namespace
Original file line number Diff line number Diff line change 1515 [tech.v3.datatype.errors :as errors]
1616 [tech.v3.datatype.bitmap :as bitmap]
1717 [ham-fisted.lazy-noncaching :as lznc]
18- [ham-fisted.set :as set]))
18+ [ham-fisted.set :as set]
19+ [ham-fisted.defprotocol :refer [extend-type]])
20+ (:refer-clojure :exclude [extend-type]))
1921
2022
2123(defn- indiscrete-mapping
Original file line number Diff line number Diff line change 2121 [ham-fisted.set :as set]
2222 [ham-fisted.api :as hamf]
2323 [ham-fisted.function :as hamf-fn]
24+ [ham-fisted.defprotocol :refer [extend-type]]
2425 [clj-commons.primitive-math :as pmath]
2526 [clojure.tools.logging :as log]
2627 [clojure.set :as c-set])
2728 (:import [org.apache.commons.math3.analysis.interpolation LoessInterpolator]
2829 [tech.v3.datatype DoubleReader]
29- [org.roaringbitmap RoaringBitmap]))
30+ [org.roaringbitmap RoaringBitmap])
31+ (:refer-clojure :exclude [extend-type]))
3032
3133(set! *warn-on-reflection* true )
3234(set! *unchecked-math* true )
Original file line number Diff line number Diff line change 2525 [tech.v3.datatype.functional :as dfn]
2626 [tech.v3.tensor :as dtt]
2727 [tech.v3.parallel.for :as pfor]
28- [clojure.tools.logging :as log]))
28+ [ham-fisted.defprotocol :refer [extend-type]]
29+ [clojure.tools.logging :as log])
30+ (:refer-clojure :exclude [extend-type]))
2931
3032
3133(defn dataset->dense
Original file line number Diff line number Diff line change 11(ns tech.v3.dataset.protocols
22 (:require [tech.v3.datatype.protocols :as dtype-proto]
3- [ham-fisted.protocols :as hamf-proto])
3+ [ham-fisted.protocols :as hamf-proto]
4+ [ham-fisted.defprotocol :refer [defprotocol extend-type extend-protocol]])
45 (:import [org.roaringbitmap RoaringBitmap]
56 [tech.v3.datatype Buffer]
67 [clojure.lang IDeref])
7- (:refer-clojure :exclude [merge]))
8+ (:refer-clojure :exclude [merge defprotocol extend-type extend-protocol ]))
89
910
1011(defprotocol PRowCount
128129
129130(extend-type Object
130131 PDatasetReducer
131- (ds->reducer [this ds] this)
132- (finalize-ds-reduced [this ctx]
133- (if (instance? IDeref ctx)
134- (.deref ^IDeref ctx)
135- ctx)))
132+ (ds->reducer [this ds] this))
136133
137134; ;For large reductions we may want to combine reducers on a single column when
138135; ;possible.
You can’t perform that action at this time.
0 commit comments