Commit ·
30966ad
0
Parent(s):
ceptron 0.1.3: temporal_causal/XS-discovery
Browse files- .gitattributes +35 -0
- LICENSE +414 -0
- README.md +116 -0
- config.json +8 -0
- models/temporal_causal/XS-discovery/README.md +146 -0
- models/temporal_causal/XS-discovery/config.json +42 -0
- models/temporal_causal/XS-discovery/model.safetensors +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,414 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright 2026 ProfitOps Inc.
|
| 2 |
+
|
| 3 |
+
The model weights, configurations and model cards in this repository are licensed under the Creative Commons
|
| 4 |
+
Attribution-NonCommercial 4.0 International license (CC BY-NC 4.0), reproduced below.
|
| 5 |
+
<https://creativecommons.org/licenses/by-nc/4.0/>
|
| 6 |
+
|
| 7 |
+
Attribution-NonCommercial 4.0 International
|
| 8 |
+
|
| 9 |
+
=======================================================================
|
| 10 |
+
|
| 11 |
+
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
| 12 |
+
does not provide legal services or legal advice. Distribution of
|
| 13 |
+
Creative Commons public licenses does not create a lawyer-client or
|
| 14 |
+
other relationship. Creative Commons makes its licenses and related
|
| 15 |
+
information available on an "as-is" basis. Creative Commons gives no
|
| 16 |
+
warranties regarding its licenses, any material licensed under their
|
| 17 |
+
terms and conditions, or any related information. Creative Commons
|
| 18 |
+
disclaims all liability for damages resulting from their use to the
|
| 19 |
+
fullest extent possible.
|
| 20 |
+
|
| 21 |
+
Using Creative Commons Public Licenses
|
| 22 |
+
|
| 23 |
+
Creative Commons public licenses provide a standard set of terms and
|
| 24 |
+
conditions that creators and other rights holders may use to share
|
| 25 |
+
original works of authorship and other material subject to copyright
|
| 26 |
+
and certain other rights specified in the public license below. The
|
| 27 |
+
following considerations are for informational purposes only, are not
|
| 28 |
+
exhaustive, and do not form part of our licenses.
|
| 29 |
+
|
| 30 |
+
Considerations for licensors: Our public licenses are
|
| 31 |
+
intended for use by those authorized to give the public
|
| 32 |
+
permission to use material in ways otherwise restricted by
|
| 33 |
+
copyright and certain other rights. Our licenses are
|
| 34 |
+
irrevocable. Licensors should read and understand the terms
|
| 35 |
+
and conditions of the license they choose before applying it.
|
| 36 |
+
Licensors should also secure all rights necessary before
|
| 37 |
+
applying our licenses so that the public can reuse the
|
| 38 |
+
material as expected. Licensors should clearly mark any
|
| 39 |
+
material not subject to the license. This includes other CC-
|
| 40 |
+
licensed material, or material used under an exception or
|
| 41 |
+
limitation to copyright. More considerations for licensors:
|
| 42 |
+
wiki.creativecommons.org/Considerations_for_licensors
|
| 43 |
+
|
| 44 |
+
Considerations for the public: By using one of our public
|
| 45 |
+
licenses, a licensor grants the public permission to use the
|
| 46 |
+
licensed material under specified terms and conditions. If
|
| 47 |
+
the licensor's permission is not necessary for any reason--for
|
| 48 |
+
example, because of any applicable exception or limitation to
|
| 49 |
+
copyright--then that use is not regulated by the license. Our
|
| 50 |
+
licenses grant only permissions under copyright and certain
|
| 51 |
+
other rights that a licensor has authority to grant. Use of
|
| 52 |
+
the licensed material may still be restricted for other
|
| 53 |
+
reasons, including because others have copyright or other
|
| 54 |
+
rights in the material. A licensor may make special requests,
|
| 55 |
+
such as asking that all changes be marked or described.
|
| 56 |
+
Although not required by our licenses, you are encouraged to
|
| 57 |
+
respect those requests where reasonable. More considerations
|
| 58 |
+
for the public:
|
| 59 |
+
wiki.creativecommons.org/Considerations_for_licensees
|
| 60 |
+
|
| 61 |
+
=======================================================================
|
| 62 |
+
|
| 63 |
+
Creative Commons Attribution-NonCommercial 4.0 International Public
|
| 64 |
+
License
|
| 65 |
+
|
| 66 |
+
By exercising the Licensed Rights (defined below), You accept and agree
|
| 67 |
+
to be bound by the terms and conditions of this Creative Commons
|
| 68 |
+
Attribution-NonCommercial 4.0 International Public License ("Public
|
| 69 |
+
License"). To the extent this Public License may be interpreted as a
|
| 70 |
+
contract, You are granted the Licensed Rights in consideration of Your
|
| 71 |
+
acceptance of these terms and conditions, and the Licensor grants You
|
| 72 |
+
such rights in consideration of benefits the Licensor receives from
|
| 73 |
+
making the Licensed Material available under these terms and
|
| 74 |
+
conditions.
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
Section 1 -- Definitions.
|
| 78 |
+
|
| 79 |
+
a. Adapted Material means material subject to Copyright and Similar
|
| 80 |
+
Rights that is derived from or based upon the Licensed Material
|
| 81 |
+
and in which the Licensed Material is translated, altered,
|
| 82 |
+
arranged, transformed, or otherwise modified in a manner requiring
|
| 83 |
+
permission under the Copyright and Similar Rights held by the
|
| 84 |
+
Licensor. For purposes of this Public License, where the Licensed
|
| 85 |
+
Material is a musical work, performance, or sound recording,
|
| 86 |
+
Adapted Material is always produced where the Licensed Material is
|
| 87 |
+
synched in timed relation with a moving image.
|
| 88 |
+
|
| 89 |
+
b. Adapter's License means the license You apply to Your Copyright
|
| 90 |
+
and Similar Rights in Your contributions to Adapted Material in
|
| 91 |
+
accordance with the terms and conditions of this Public License.
|
| 92 |
+
|
| 93 |
+
c. Copyright and Similar Rights means copyright and/or similar rights
|
| 94 |
+
closely related to copyright including, without limitation,
|
| 95 |
+
performance, broadcast, sound recording, and Sui Generis Database
|
| 96 |
+
Rights, without regard to how the rights are labeled or
|
| 97 |
+
categorized. For purposes of this Public License, the rights
|
| 98 |
+
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
| 99 |
+
Rights.
|
| 100 |
+
d. Effective Technological Measures means those measures that, in the
|
| 101 |
+
absence of proper authority, may not be circumvented under laws
|
| 102 |
+
fulfilling obligations under Article 11 of the WIPO Copyright
|
| 103 |
+
Treaty adopted on December 20, 1996, and/or similar international
|
| 104 |
+
agreements.
|
| 105 |
+
|
| 106 |
+
e. Exceptions and Limitations means fair use, fair dealing, and/or
|
| 107 |
+
any other exception or limitation to Copyright and Similar Rights
|
| 108 |
+
that applies to Your use of the Licensed Material.
|
| 109 |
+
|
| 110 |
+
f. Licensed Material means the artistic or literary work, database,
|
| 111 |
+
or other material to which the Licensor applied this Public
|
| 112 |
+
License.
|
| 113 |
+
|
| 114 |
+
g. Licensed Rights means the rights granted to You subject to the
|
| 115 |
+
terms and conditions of this Public License, which are limited to
|
| 116 |
+
all Copyright and Similar Rights that apply to Your use of the
|
| 117 |
+
Licensed Material and that the Licensor has authority to license.
|
| 118 |
+
|
| 119 |
+
h. Licensor means the individual(s) or entity(ies) granting rights
|
| 120 |
+
under this Public License.
|
| 121 |
+
|
| 122 |
+
i. NonCommercial means not primarily intended for or directed towards
|
| 123 |
+
commercial advantage or monetary compensation. For purposes of
|
| 124 |
+
this Public License, the exchange of the Licensed Material for
|
| 125 |
+
other material subject to Copyright and Similar Rights by digital
|
| 126 |
+
file-sharing or similar means is NonCommercial provided there is
|
| 127 |
+
no payment of monetary compensation in connection with the
|
| 128 |
+
exchange.
|
| 129 |
+
|
| 130 |
+
j. Share means to provide material to the public by any means or
|
| 131 |
+
process that requires permission under the Licensed Rights, such
|
| 132 |
+
as reproduction, public display, public performance, distribution,
|
| 133 |
+
dissemination, communication, or importation, and to make material
|
| 134 |
+
available to the public including in ways that members of the
|
| 135 |
+
public may access the material from a place and at a time
|
| 136 |
+
individually chosen by them.
|
| 137 |
+
|
| 138 |
+
k. Sui Generis Database Rights means rights other than copyright
|
| 139 |
+
resulting from Directive 96/9/EC of the European Parliament and of
|
| 140 |
+
the Council of 11 March 1996 on the legal protection of databases,
|
| 141 |
+
as amended and/or succeeded, as well as other essentially
|
| 142 |
+
equivalent rights anywhere in the world.
|
| 143 |
+
|
| 144 |
+
l. You means the individual or entity exercising the Licensed Rights
|
| 145 |
+
under this Public License. Your has a corresponding meaning.
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
Section 2 -- Scope.
|
| 149 |
+
|
| 150 |
+
a. License grant.
|
| 151 |
+
|
| 152 |
+
1. Subject to the terms and conditions of this Public License,
|
| 153 |
+
the Licensor hereby grants You a worldwide, royalty-free,
|
| 154 |
+
non-sublicensable, non-exclusive, irrevocable license to
|
| 155 |
+
exercise the Licensed Rights in the Licensed Material to:
|
| 156 |
+
|
| 157 |
+
a. reproduce and Share the Licensed Material, in whole or
|
| 158 |
+
in part, for NonCommercial purposes only; and
|
| 159 |
+
|
| 160 |
+
b. produce, reproduce, and Share Adapted Material for
|
| 161 |
+
NonCommercial purposes only.
|
| 162 |
+
|
| 163 |
+
2. Exceptions and Limitations. For the avoidance of doubt, where
|
| 164 |
+
Exceptions and Limitations apply to Your use, this Public
|
| 165 |
+
License does not apply, and You do not need to comply with
|
| 166 |
+
its terms and conditions.
|
| 167 |
+
|
| 168 |
+
3. Term. The term of this Public License is specified in Section
|
| 169 |
+
6(a).
|
| 170 |
+
|
| 171 |
+
4. Media and formats; technical modifications allowed. The
|
| 172 |
+
Licensor authorizes You to exercise the Licensed Rights in
|
| 173 |
+
all media and formats whether now known or hereafter created,
|
| 174 |
+
and to make technical modifications necessary to do so. The
|
| 175 |
+
Licensor waives and/or agrees not to assert any right or
|
| 176 |
+
authority to forbid You from making technical modifications
|
| 177 |
+
necessary to exercise the Licensed Rights, including
|
| 178 |
+
technical modifications necessary to circumvent Effective
|
| 179 |
+
Technological Measures. For purposes of this Public License,
|
| 180 |
+
simply making modifications authorized by this Section 2(a)
|
| 181 |
+
(4) never produces Adapted Material.
|
| 182 |
+
|
| 183 |
+
5. Downstream recipients.
|
| 184 |
+
|
| 185 |
+
a. Offer from the Licensor -- Licensed Material. Every
|
| 186 |
+
recipient of the Licensed Material automatically
|
| 187 |
+
receives an offer from the Licensor to exercise the
|
| 188 |
+
Licensed Rights under the terms and conditions of this
|
| 189 |
+
Public License.
|
| 190 |
+
|
| 191 |
+
b. No downstream restrictions. You may not offer or impose
|
| 192 |
+
any additional or different terms or conditions on, or
|
| 193 |
+
apply any Effective Technological Measures to, the
|
| 194 |
+
Licensed Material if doing so restricts exercise of the
|
| 195 |
+
Licensed Rights by any recipient of the Licensed
|
| 196 |
+
Material.
|
| 197 |
+
|
| 198 |
+
6. No endorsement. Nothing in this Public License constitutes or
|
| 199 |
+
may be construed as permission to assert or imply that You
|
| 200 |
+
are, or that Your use of the Licensed Material is, connected
|
| 201 |
+
with, or sponsored, endorsed, or granted official status by,
|
| 202 |
+
the Licensor or others designated to receive attribution as
|
| 203 |
+
provided in Section 3(a)(1)(A)(i).
|
| 204 |
+
|
| 205 |
+
b. Other rights.
|
| 206 |
+
|
| 207 |
+
1. Moral rights, such as the right of integrity, are not
|
| 208 |
+
licensed under this Public License, nor are publicity,
|
| 209 |
+
privacy, and/or other similar personality rights; however, to
|
| 210 |
+
the extent possible, the Licensor waives and/or agrees not to
|
| 211 |
+
assert any such rights held by the Licensor to the limited
|
| 212 |
+
extent necessary to allow You to exercise the Licensed
|
| 213 |
+
Rights, but not otherwise.
|
| 214 |
+
|
| 215 |
+
2. Patent and trademark rights are not licensed under this
|
| 216 |
+
Public License.
|
| 217 |
+
|
| 218 |
+
3. To the extent possible, the Licensor waives any right to
|
| 219 |
+
collect royalties from You for the exercise of the Licensed
|
| 220 |
+
Rights, whether directly or through a collecting society
|
| 221 |
+
under any voluntary or waivable statutory or compulsory
|
| 222 |
+
licensing scheme. In all other cases the Licensor expressly
|
| 223 |
+
reserves any right to collect such royalties, including when
|
| 224 |
+
the Licensed Material is used other than for NonCommercial
|
| 225 |
+
purposes.
|
| 226 |
+
|
| 227 |
+
|
| 228 |
+
Section 3 -- License Conditions.
|
| 229 |
+
|
| 230 |
+
Your exercise of the Licensed Rights is expressly made subject to the
|
| 231 |
+
following conditions.
|
| 232 |
+
|
| 233 |
+
a. Attribution.
|
| 234 |
+
|
| 235 |
+
1. If You Share the Licensed Material (including in modified
|
| 236 |
+
form), You must:
|
| 237 |
+
|
| 238 |
+
a. retain the following if it is supplied by the Licensor
|
| 239 |
+
with the Licensed Material:
|
| 240 |
+
|
| 241 |
+
i. identification of the creator(s) of the Licensed
|
| 242 |
+
Material and any others designated to receive
|
| 243 |
+
attribution, in any reasonable manner requested by
|
| 244 |
+
the Licensor (including by pseudonym if
|
| 245 |
+
designated);
|
| 246 |
+
|
| 247 |
+
ii. a copyright notice;
|
| 248 |
+
|
| 249 |
+
iii. a notice that refers to this Public License;
|
| 250 |
+
|
| 251 |
+
iv. a notice that refers to the disclaimer of
|
| 252 |
+
warranties;
|
| 253 |
+
|
| 254 |
+
v. a URI or hyperlink to the Licensed Material to the
|
| 255 |
+
extent reasonably practicable;
|
| 256 |
+
|
| 257 |
+
b. indicate if You modified the Licensed Material and
|
| 258 |
+
retain an indication of any previous modifications; and
|
| 259 |
+
|
| 260 |
+
c. indicate the Licensed Material is licensed under this
|
| 261 |
+
Public License, and include the text of, or the URI or
|
| 262 |
+
hyperlink to, this Public License.
|
| 263 |
+
|
| 264 |
+
2. You may satisfy the conditions in Section 3(a)(1) in any
|
| 265 |
+
reasonable manner based on the medium, means, and context in
|
| 266 |
+
which You Share the Licensed Material. For example, it may be
|
| 267 |
+
reasonable to satisfy the conditions by providing a URI or
|
| 268 |
+
hyperlink to a resource that includes the required
|
| 269 |
+
information.
|
| 270 |
+
|
| 271 |
+
3. If requested by the Licensor, You must remove any of the
|
| 272 |
+
information required by Section 3(a)(1)(A) to the extent
|
| 273 |
+
reasonably practicable.
|
| 274 |
+
|
| 275 |
+
4. If You Share Adapted Material You produce, the Adapter's
|
| 276 |
+
License You apply must not prevent recipients of the Adapted
|
| 277 |
+
Material from complying with this Public License.
|
| 278 |
+
|
| 279 |
+
|
| 280 |
+
Section 4 -- Sui Generis Database Rights.
|
| 281 |
+
|
| 282 |
+
Where the Licensed Rights include Sui Generis Database Rights that
|
| 283 |
+
apply to Your use of the Licensed Material:
|
| 284 |
+
|
| 285 |
+
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
| 286 |
+
to extract, reuse, reproduce, and Share all or a substantial
|
| 287 |
+
portion of the contents of the database for NonCommercial purposes
|
| 288 |
+
only;
|
| 289 |
+
|
| 290 |
+
b. if You include all or a substantial portion of the database
|
| 291 |
+
contents in a database in which You have Sui Generis Database
|
| 292 |
+
Rights, then the database in which You have Sui Generis Database
|
| 293 |
+
Rights (but not its individual contents) is Adapted Material; and
|
| 294 |
+
|
| 295 |
+
c. You must comply with the conditions in Section 3(a) if You Share
|
| 296 |
+
all or a substantial portion of the contents of the database.
|
| 297 |
+
|
| 298 |
+
For the avoidance of doubt, this Section 4 supplements and does not
|
| 299 |
+
replace Your obligations under this Public License where the Licensed
|
| 300 |
+
Rights include other Copyright and Similar Rights.
|
| 301 |
+
|
| 302 |
+
|
| 303 |
+
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
| 304 |
+
|
| 305 |
+
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
| 306 |
+
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
| 307 |
+
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
| 308 |
+
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
| 309 |
+
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
| 310 |
+
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
| 311 |
+
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
| 312 |
+
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
| 313 |
+
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
| 314 |
+
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
| 315 |
+
|
| 316 |
+
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
| 317 |
+
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
| 318 |
+
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
| 319 |
+
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
| 320 |
+
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
| 321 |
+
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
| 322 |
+
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
| 323 |
+
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
| 324 |
+
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
| 325 |
+
|
| 326 |
+
c. The disclaimer of warranties and limitation of liability provided
|
| 327 |
+
above shall be interpreted in a manner that, to the extent
|
| 328 |
+
possible, most closely approximates an absolute disclaimer and
|
| 329 |
+
waiver of all liability.
|
| 330 |
+
|
| 331 |
+
|
| 332 |
+
Section 6 -- Term and Termination.
|
| 333 |
+
|
| 334 |
+
a. This Public License applies for the term of the Copyright and
|
| 335 |
+
Similar Rights licensed here. However, if You fail to comply with
|
| 336 |
+
this Public License, then Your rights under this Public License
|
| 337 |
+
terminate automatically.
|
| 338 |
+
|
| 339 |
+
b. Where Your right to use the Licensed Material has terminated under
|
| 340 |
+
Section 6(a), it reinstates:
|
| 341 |
+
|
| 342 |
+
1. automatically as of the date the violation is cured, provided
|
| 343 |
+
it is cured within 30 days of Your discovery of the
|
| 344 |
+
violation; or
|
| 345 |
+
|
| 346 |
+
2. upon express reinstatement by the Licensor.
|
| 347 |
+
|
| 348 |
+
For the avoidance of doubt, this Section 6(b) does not affect any
|
| 349 |
+
right the Licensor may have to seek remedies for Your violations
|
| 350 |
+
of this Public License.
|
| 351 |
+
|
| 352 |
+
c. For the avoidance of doubt, the Licensor may also offer the
|
| 353 |
+
Licensed Material under separate terms or conditions or stop
|
| 354 |
+
distributing the Licensed Material at any time; however, doing so
|
| 355 |
+
will not terminate this Public License.
|
| 356 |
+
|
| 357 |
+
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
| 358 |
+
License.
|
| 359 |
+
|
| 360 |
+
|
| 361 |
+
Section 7 -- Other Terms and Conditions.
|
| 362 |
+
|
| 363 |
+
a. The Licensor shall not be bound by any additional or different
|
| 364 |
+
terms or conditions communicated by You unless expressly agreed.
|
| 365 |
+
|
| 366 |
+
b. Any arrangements, understandings, or agreements regarding the
|
| 367 |
+
Licensed Material not stated herein are separate from and
|
| 368 |
+
independent of the terms and conditions of this Public License.
|
| 369 |
+
|
| 370 |
+
|
| 371 |
+
Section 8 -- Interpretation.
|
| 372 |
+
|
| 373 |
+
a. For the avoidance of doubt, this Public License does not, and
|
| 374 |
+
shall not be interpreted to, reduce, limit, restrict, or impose
|
| 375 |
+
conditions on any use of the Licensed Material that could lawfully
|
| 376 |
+
be made without permission under this Public License.
|
| 377 |
+
|
| 378 |
+
b. To the extent possible, if any provision of this Public License is
|
| 379 |
+
deemed unenforceable, it shall be automatically reformed to the
|
| 380 |
+
minimum extent necessary to make it enforceable. If the provision
|
| 381 |
+
cannot be reformed, it shall be severed from this Public License
|
| 382 |
+
without affecting the enforceability of the remaining terms and
|
| 383 |
+
conditions.
|
| 384 |
+
|
| 385 |
+
c. No term or condition of this Public License will be waived and no
|
| 386 |
+
failure to comply consented to unless expressly agreed to by the
|
| 387 |
+
Licensor.
|
| 388 |
+
|
| 389 |
+
d. Nothing in this Public License constitutes or may be interpreted
|
| 390 |
+
as a limitation upon, or waiver of, any privileges and immunities
|
| 391 |
+
that apply to the Licensor or You, including from the legal
|
| 392 |
+
processes of any jurisdiction or authority.
|
| 393 |
+
|
| 394 |
+
=======================================================================
|
| 395 |
+
|
| 396 |
+
Creative Commons is not a party to its public
|
| 397 |
+
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
| 398 |
+
its public licenses to material it publishes and in those instances
|
| 399 |
+
will be considered the “Licensor.” The text of the Creative Commons
|
| 400 |
+
public licenses is dedicated to the public domain under the CC0 Public
|
| 401 |
+
Domain Dedication. Except for the limited purpose of indicating that
|
| 402 |
+
material is shared under a Creative Commons public license or as
|
| 403 |
+
otherwise permitted by the Creative Commons policies published at
|
| 404 |
+
creativecommons.org/policies, Creative Commons does not authorize the
|
| 405 |
+
use of the trademark "Creative Commons" or any other trademark or logo
|
| 406 |
+
of Creative Commons without its prior written consent including,
|
| 407 |
+
without limitation, in connection with any unauthorized modifications
|
| 408 |
+
to any of its public licenses or any other arrangements,
|
| 409 |
+
understandings, or agreements concerning use of licensed material. For
|
| 410 |
+
the avoidance of doubt, this paragraph does not form part of the
|
| 411 |
+
public licenses.
|
| 412 |
+
|
| 413 |
+
Creative Commons may be contacted at creativecommons.org.
|
| 414 |
+
|
README.md
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- causal-discovery
|
| 4 |
+
- time-series
|
| 5 |
+
- temporal-causal
|
| 6 |
+
- prior-fitted-network
|
| 7 |
+
license: cc-by-nc-4.0
|
| 8 |
+
license_link: LICENSE
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Ceptron
|
| 12 |
+
|
| 13 |
+
Open foundation models, one family per folder under `models/`, served by the `ceptron` Python package (one
|
| 14 |
+
sub-package per family).
|
| 15 |
+
|
| 16 |
+
| family | answers |
|
| 17 |
+
|---|---|
|
| 18 |
+
| `temporal_causal` | which variables of a time series cause which, at which lag, in one forward pass (built on TCPFN) |
|
| 19 |
+
|
| 20 |
+
## Use
|
| 21 |
+
|
| 22 |
+
Install into a virtual environment (Python 3.10 or newer). Ubuntu, Debian and Homebrew Python refuse a plain
|
| 23 |
+
`pip install` outside one:
|
| 24 |
+
|
| 25 |
+
```
|
| 26 |
+
python3 -m venv ceptron-env
|
| 27 |
+
source ceptron-env/bin/activate # Windows: ceptron-env\Scripts\activate
|
| 28 |
+
pip install "git+https://github.com/ProfitOpsAI/ceptron" pandas
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
On Ubuntu or Debian, if `python3 -m venv` says ensurepip is not available, run `sudo apt install python3-venv` first.
|
| 32 |
+
Or with [uv](https://docs.astral.sh/uv/), which needs no system packages:
|
| 33 |
+
|
| 34 |
+
```
|
| 35 |
+
uv venv ceptron-env
|
| 36 |
+
source ceptron-env/bin/activate
|
| 37 |
+
uv pip install "git+https://github.com/ProfitOpsAI/ceptron" pandas
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
Then run `python` in that environment and paste this, or save it as `quickstart.py` and run `python quickstart.py`.
|
| 41 |
+
It builds a small series with two planted causes and asks the model to find them; the first run downloads the model (about 260 MB):
|
| 42 |
+
|
| 43 |
+
```python
|
| 44 |
+
import numpy as np
|
| 45 |
+
import pandas as pd
|
| 46 |
+
from ceptron.temporal_causal import CausalModel
|
| 47 |
+
|
| 48 |
+
# A toy series with two planted causes: price drives demand 2 steps later, ads drive visits 3 steps later.
|
| 49 |
+
rng = np.random.default_rng(0)
|
| 50 |
+
T = 400
|
| 51 |
+
x = np.zeros((T, 4))
|
| 52 |
+
noise = rng.normal(size=(T, 4))
|
| 53 |
+
for t in range(3, T):
|
| 54 |
+
x[t] = 0.4 * x[t - 1] + noise[t]
|
| 55 |
+
x[t, 1] += 0.9 * x[t - 2, 0] # price -> demand, lag 2
|
| 56 |
+
x[t, 3] += 0.8 * x[t - 3, 2] # ads -> visits, lag 3
|
| 57 |
+
df = pd.DataFrame(x, columns=["price", "demand", "ads", "visits"])
|
| 58 |
+
|
| 59 |
+
model = CausalModel.from_pretrained("ProfitOpsAI/ceptron", model="XS-discovery")
|
| 60 |
+
result = model.discover(df)
|
| 61 |
+
print(result)
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
You should see (the last digit can differ on other hardware):
|
| 65 |
+
|
| 66 |
+
```
|
| 67 |
+
Discovery: 3 edges over 4 variables (graph head logit +22.53)
|
| 68 |
+
ads -> visits lag 3 p 0.79
|
| 69 |
+
price -> demand lag 2 p 0.76
|
| 70 |
+
demand -> price lag 23 p 0.28
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
Both planted causes come first, with the right lags. The third, much weaker link is a false alarm: XS marks as many
|
| 74 |
+
links as its probabilities add up to, and on very small graphs that count tends to be one too many, so read the
|
| 75 |
+
probabilities, not only the list.
|
| 76 |
+
|
| 77 |
+
On your own data, one column per variable and one row per time step (drop the timestamp column):
|
| 78 |
+
|
| 79 |
+
```python
|
| 80 |
+
df = pd.read_csv("my_series.csv").drop(columns=["timestamp"])
|
| 81 |
+
result = model.discover(df, col_types={"orders": "count"}) # declare count, binary, ordinal, bounded columns
|
| 82 |
+
print(result)
|
| 83 |
+
result.to_frame() # the marked links as a DataFrame
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
For an irregular clock, pass `time_gap`: the gap before each row, in steps of the regular clock.
|
| 87 |
+
|
| 88 |
+
## Models
|
| 89 |
+
|
| 90 |
+
Each model folder holds its own card, `config.json` and `model.safetensors`.
|
| 91 |
+
|
| 92 |
+
| family | model | parameters | weights sha256 |
|
| 93 |
+
|---|---|---:|---|
|
| 94 |
+
| temporal_causal | [XS-discovery](models/temporal_causal/XS-discovery/README.md) | 65.5 M | `3366c5844caa4fb1...` |
|
| 95 |
+
|
| 96 |
+
## Sizes
|
| 97 |
+
|
| 98 |
+
Each family comes in sizes. **XS is available now**; **S, M and L are coming soon**. XS trades accuracy for speed:
|
| 99 |
+
it is the fast first look. For higher precision, recall and F1, harder series and more of the causal questions the
|
| 100 |
+
models answer natively, use S, M and L, coming soon; each release publishes its own measured numbers, so you can pick
|
| 101 |
+
the size by the accuracy you need.
|
| 102 |
+
|
| 103 |
+
| size | status | good for |
|
| 104 |
+
|---|---|---|
|
| 105 |
+
| XS | available: [`XS-discovery`](models/temporal_causal/XS-discovery/README.md) | a fast first causal map of a time series in seconds on a CPU or a fraction of a second on a GPU (100 columns × 400 rows: 0.8 s CPU, 0.03 s GPU): which variables drive which, and after how many steps. Strongest on process/operations and retail/demand series (AUROC 94 % and 88 % on our development set). [What XS is good for](models/temporal_causal/XS-discovery/README.md#what-xs-is-good-for) |
|
| 106 |
+
| S | coming soon | higher precision, recall and F1 than XS; harder series |
|
| 107 |
+
| M | coming soon | higher precision, recall and F1 than XS; harder series |
|
| 108 |
+
| L | coming soon | higher precision, recall and F1 than XS; harder series |
|
| 109 |
+
|
| 110 |
+
## License
|
| 111 |
+
|
| 112 |
+
The model weights, configurations and cards in this repository are licensed under
|
| 113 |
+
[CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/) (see `LICENSE`): anyone may use, study, modify and
|
| 114 |
+
share them for non-commercial purposes, including research, teaching and personal projects. Commercial use of the
|
| 115 |
+
models needs a separate license from ProfitOps Inc. The `ceptron` code on GitHub is
|
| 116 |
+
[Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0).
|
config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"library": "ceptron",
|
| 3 |
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overy
|
| 2 |
+
|
| 3 |
+
The discovery model of Ceptron Temporal Causal, size XS, built on TCPFN (temporal causal prior-data fitted networks).
|
| 4 |
+
It answers one question, which variables in a multivariate time series
|
| 5 |
+
cause which, at which lag, from the network's own outputs: a graph-level head says whether there is any edge, and if so
|
| 6 |
+
the top `round(sum of pair probabilities)` pairs are marked. Nothing is fitted on the request and there is no
|
| 7 |
+
statistical fallback.
|
| 8 |
+
|
| 9 |
+
## What XS is good for
|
| 10 |
+
|
| 11 |
+
XS is the small, fast entry point: it answers on a CPU in seconds and on a GPU in a fraction of a second, with no
|
| 12 |
+
fitting and no tuning. Time grows with columns × rows; memory stays about 1 GB:
|
| 13 |
+
|
| 14 |
+
| columns | CPU, 400 rows | CPU, 2,000 rows | GPU, 400 rows | GPU, 2,000 rows |
|
| 15 |
+
|---:|---:|---:|---:|---:|
|
| 16 |
+
| 10 | 0.1 s | 0.7 s | 0.01 s | 0.03 s |
|
| 17 |
+
| 50 | 0.4 s | 4 s | 0.01 s | 0.13 s |
|
| 18 |
+
| 100 | 0.8 s | 8 s | 0.03 s | 0.25 s |
|
| 19 |
+
| 200 | 1.8 s | 18 s | 0.06 s | 0.5 s |
|
| 20 |
+
| 500 | | | 0.2 s | 1.5 s |
|
| 21 |
+
|
| 22 |
+
(Measured on a desktop CPU with 8 threads and on an NVIDIA RTX 5080; a laptop CPU is usually slower, and the first
|
| 23 |
+
run also downloads the model.) Use it to get a first causal map of a multivariate time series, which variables drive which, and after how
|
| 24 |
+
many steps, before investing in a deeper analysis.
|
| 25 |
+
|
| 26 |
+
It is strongest on:
|
| 27 |
+
|
| 28 |
+
* **Process and operations series:** controlled process data on a regular clock (AUROC 94 %, F1 79 % on our
|
| 29 |
+
development set).
|
| 30 |
+
* **Retail and demand series:** daily sales, prices, promotions and traffic (AUROC 88 %, F1 70 %).
|
| 31 |
+
* **Mixed column types:** continuous, count, binary, ordinal and bounded columns, declared with `col_types`.
|
| 32 |
+
* **Lagged effects:** a cause that acts after a delay of several steps.
|
| 33 |
+
|
| 34 |
+
Use it with care on business-style tables with many weak links (AUROC 79–84 %, F1 41–47 %), and expect weaker answers
|
| 35 |
+
on coarsely sampled or irregular series, long delays (20 to 60 steps), slow hidden trends and same-step links between
|
| 36 |
+
count or binary columns. Effect sizes, identifiability and root cause come with the larger sizes and later XS
|
| 37 |
+
releases.
|
| 38 |
+
|
| 39 |
+
**Need higher precision or F1?** XS is the fast first look. For higher precision, recall and F1 and for harder
|
| 40 |
+
series, use the S, M and L sizes, coming soon; each release publishes its own measured numbers, so you can choose the
|
| 41 |
+
size by the accuracy your decision needs.
|
| 42 |
+
|
| 43 |
+
## Use
|
| 44 |
+
|
| 45 |
+
Install into a virtual environment (Python 3.10 or newer). Ubuntu, Debian and Homebrew Python refuse a plain
|
| 46 |
+
`pip install` outside one:
|
| 47 |
+
|
| 48 |
+
```
|
| 49 |
+
python3 -m venv ceptron-env
|
| 50 |
+
source ceptron-env/bin/activate # Windows: ceptron-env\Scripts\activate
|
| 51 |
+
pip install "git+https://github.com/ProfitOpsAI/ceptron" pandas
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
On Ubuntu or Debian, if `python3 -m venv` says ensurepip is not available, run `sudo apt install python3-venv` first.
|
| 55 |
+
Or with [uv](https://docs.astral.sh/uv/), which needs no system packages:
|
| 56 |
+
|
| 57 |
+
```
|
| 58 |
+
uv venv ceptron-env
|
| 59 |
+
source ceptron-env/bin/activate
|
| 60 |
+
uv pip install "git+https://github.com/ProfitOpsAI/ceptron" pandas
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
Then run `python` in that environment and paste this, or save it as `quickstart.py` and run `python quickstart.py`.
|
| 64 |
+
It builds a small series with two planted causes and asks the model to find them; the first run downloads the model (about 260 MB):
|
| 65 |
+
|
| 66 |
+
```python
|
| 67 |
+
import numpy as np
|
| 68 |
+
import pandas as pd
|
| 69 |
+
from ceptron.temporal_causal import CausalModel
|
| 70 |
+
|
| 71 |
+
# A toy series with two planted causes: price drives demand 2 steps later, ads drive visits 3 steps later.
|
| 72 |
+
rng = np.random.default_rng(0)
|
| 73 |
+
T = 400
|
| 74 |
+
x = np.zeros((T, 4))
|
| 75 |
+
noise = rng.normal(size=(T, 4))
|
| 76 |
+
for t in range(3, T):
|
| 77 |
+
x[t] = 0.4 * x[t - 1] + noise[t]
|
| 78 |
+
x[t, 1] += 0.9 * x[t - 2, 0] # price -> demand, lag 2
|
| 79 |
+
x[t, 3] += 0.8 * x[t - 3, 2] # ads -> visits, lag 3
|
| 80 |
+
df = pd.DataFrame(x, columns=["price", "demand", "ads", "visits"])
|
| 81 |
+
|
| 82 |
+
model = CausalModel.from_pretrained("ProfitOpsAI/ceptron", model="XS-discovery")
|
| 83 |
+
result = model.discover(df)
|
| 84 |
+
print(result)
|
| 85 |
+
```
|
| 86 |
+
|
| 87 |
+
You should see (the last digit can differ on other hardware):
|
| 88 |
+
|
| 89 |
+
```
|
| 90 |
+
Discovery: 3 edges over 4 variables (graph head logit +22.53)
|
| 91 |
+
ads -> visits lag 3 p 0.79
|
| 92 |
+
price -> demand lag 2 p 0.76
|
| 93 |
+
demand -> price lag 23 p 0.28
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
Both planted causes come first, with the right lags. The third, much weaker link is a false alarm: XS marks as many
|
| 97 |
+
links as its probabilities add up to, and on very small graphs that count tends to be one too many, so read the
|
| 98 |
+
probabilities, not only the list.
|
| 99 |
+
|
| 100 |
+
On your own data, one column per variable and one row per time step (drop the timestamp column):
|
| 101 |
+
|
| 102 |
+
```python
|
| 103 |
+
df = pd.read_csv("my_series.csv").drop(columns=["timestamp"])
|
| 104 |
+
result = model.discover(df, col_types={"orders": "count"}) # declare count, binary, ordinal, bounded columns
|
| 105 |
+
print(result)
|
| 106 |
+
result.to_frame() # the marked links as a DataFrame
|
| 107 |
+
```
|
| 108 |
+
|
| 109 |
+
For an irregular clock, pass `time_gap`: the gap before each row, in steps of the regular clock.
|
| 110 |
+
|
| 111 |
+
## What it answers, and what it refuses
|
| 112 |
+
|
| 113 |
+
* **Answers:** temporal causal discovery on a regular or irregular clock with continuous, count, binary, ordinal and
|
| 114 |
+
bounded columns: a directed graph with lags, plus the strongest links with their probabilities. Probabilities are
|
| 115 |
+
the network's readouts, not calibrated probabilities. The effect sign is not reported.
|
| 116 |
+
* **Refuses:** missing cells, text columns and non-numeric data, and series shorter than one patch
|
| 117 |
+
(8 rows). It does not estimate effect sizes, identifiability or root causes.
|
| 118 |
+
* **Known weak spots:** coarsely sampled and irregularly spaced series; long delays (20 to 60 steps), slow hidden
|
| 119 |
+
trends, state memory and delays that vary over time; contemporaneous links between count or binary columns. Control
|
| 120 |
+
loops, sensor read-through effects and industrial process mechanisms were not part of its training.
|
| 121 |
+
|
| 122 |
+
## Measured on a development benchmark (files inspected during development, not a holdout)
|
| 123 |
+
|
| 124 |
+
AUROC / F1 in %, every temporal file sent, unanswered scored as 50 / 0:
|
| 125 |
+
|
| 126 |
+
| set | files | AUROC | F1 |
|
| 127 |
+
|---|---:|---:|---:|
|
| 128 |
+
| controlled process series | 72 | 94.3 | 79.1 |
|
| 129 |
+
| retail daily series | 26 | 88.4 | 69.6 |
|
| 130 |
+
| business-style files answered by every compared checkpoint | 103 | 83.6 | 47.2 |
|
| 131 |
+
| business-style files, all sent | 118 | 79.3 | 41.2 |
|
| 132 |
+
|
| 133 |
+
## Files
|
| 134 |
+
|
| 135 |
+
| file | what |
|
| 136 |
+
|---|---|
|
| 137 |
+
| `model.safetensors` | the weights, 65.5 M parameters |
|
| 138 |
+
| `config.json` | the architecture and the serving settings (windows read, decision rule, column types) |
|
| 139 |
+
|
| 140 |
+
sha256 of `model.safetensors`: `3366c5844caa4fb198e9929c176d092a520cd4bbd91168494ec33d268291b69d` (checked by `CausalModel` on every load).
|
| 141 |
+
|
| 142 |
+
## License
|
| 143 |
+
|
| 144 |
+
The weights and this card: [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/), non-commercial use only;
|
| 145 |
+
commercial use needs a separate license from ProfitOps Inc. The `ceptron` code that runs them is
|
| 146 |
+
[Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0).
|
models/temporal_causal/XS-discovery/config.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "XS-discovery",
|
| 3 |
+
"library": "ceptron",
|
| 4 |
+
"family": "temporal_causal",
|
| 5 |
+
"model_type": "joint_panel",
|
| 6 |
+
"model": {
|
| 7 |
+
"d_model": 512,
|
| 8 |
+
"n_heads": 8,
|
| 9 |
+
"n_layers": 20,
|
| 10 |
+
"ff_factor": 4,
|
| 11 |
+
"patch_len": 8,
|
| 12 |
+
"max_lag": 100,
|
| 13 |
+
"max_patches": 256,
|
| 14 |
+
"pair_head": "cross_time",
|
| 15 |
+
"cross_dim": 32,
|
| 16 |
+
"cross_groups": 8,
|
| 17 |
+
"cross_shifts": 2,
|
| 18 |
+
"edge_head": "factorized",
|
| 19 |
+
"time_gap_input": true,
|
| 20 |
+
"categorical_input": true,
|
| 21 |
+
"n_col_types": 4,
|
| 22 |
+
"graph_head": true
|
| 23 |
+
},
|
| 24 |
+
"standardization": "per_column_zscore_clip10",
|
| 25 |
+
"serving": {
|
| 26 |
+
"window": 336,
|
| 27 |
+
"small_window": 672,
|
| 28 |
+
"small_max_columns": 10,
|
| 29 |
+
"window_policy": "all_half_overlap_v2_tail",
|
| 30 |
+
"decision_rule": "graph_head_topk_expected_count_v1",
|
| 31 |
+
"col_type_codes": {
|
| 32 |
+
"continuous": 0,
|
| 33 |
+
"ordinal": 1,
|
| 34 |
+
"binary": 1,
|
| 35 |
+
"nominal": 1,
|
| 36 |
+
"count": 2,
|
| 37 |
+
"bounded": 3
|
| 38 |
+
}
|
| 39 |
+
},
|
| 40 |
+
"n_parameters": 65503928,
|
| 41 |
+
"weights_sha256": "3366c5844caa4fb198e9929c176d092a520cd4bbd91168494ec33d268291b69d"
|
| 42 |
+
}
|
models/temporal_causal/XS-discovery/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3366c5844caa4fb198e9929c176d092a520cd4bbd91168494ec33d268291b69d
|
| 3 |
+
size 262036456
|