@nirs4all/methods 1.3.13 → 1.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +235 -0
- package/LICENSE-CeCILL-2.1 +518 -0
- package/README.md +154 -2
- package/dist/LICENSES/AGPL-3.0-or-later.txt +235 -0
- package/dist/LICENSES/Apache-2.0.txt +73 -0
- package/dist/LICENSES/BSD-3-Clause.txt +11 -0
- package/dist/LICENSES/COMMERCIAL-LICENSE.md +14 -0
- package/dist/LICENSES/COMMERCIAL-LICENSE_FR.md +15 -0
- package/dist/LICENSES/CeCILL-2.1.txt +518 -0
- package/dist/LICENSES/MIT.txt +18 -0
- package/dist/LICENSES/mixeff-dependencies.txt +13459 -0
- package/dist/LICENSES/mixeff-rs.txt +21 -0
- package/dist/LICENSES/rfr-cereal.txt +24 -0
- package/dist/LICENSES/rfr-rapidjson.txt +57 -0
- package/dist/LICENSES/rfr.txt +33 -0
- package/dist/LICENSES/rust-standard-library.txt +8266 -0
- package/dist/THIRD_PARTY_LICENSES.md +140 -0
- package/dist/componentAnalysis.d.ts +61 -0
- package/dist/componentAnalysis.js +175 -0
- package/dist/config.js +1 -1
- package/dist/context.js +1 -1
- package/dist/estimatorRoles.js +18 -1
- package/dist/estimatorRolesGenerated.d.ts +48 -1
- package/dist/estimatorRolesGenerated.js +41 -2
- package/dist/ffi.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/methodResult.js +1 -1
- package/dist/model.js +1 -1
- package/dist/multimodalPipeline.js +1 -1
- package/dist/n4m.js +1 -1
- package/dist/n4m.wasm +0 -0
- package/dist/nativeAugmentation.js +1 -1
- package/dist/nativeModel.js +1 -1
- package/dist/nativePreprocessingPipeline.js +1 -1
- package/dist/nativeSplitter.js +1 -1
- package/dist/optimization.js +1 -1
- package/dist/preflightDiagnostics.js +1 -1
- package/dist/preprocessing.js +5 -1
- package/dist/ranking.d.ts +61 -0
- package/dist/ranking.js +110 -0
- package/dist/rolePipeline.js +1 -1
- package/dist/selection.js +1 -1
- package/dist/serialization.js +1 -1
- package/dist/spectralEncoding.js +1 -1
- package/dist/types.js +1 -1
- package/package.json +7 -5
|
@@ -0,0 +1,518 @@
|
|
|
1
|
+
|
|
2
|
+
CeCILL FREE SOFTWARE LICENSE AGREEMENT
|
|
3
|
+
|
|
4
|
+
Version 2.1 dated 2013-06-21
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Notice
|
|
8
|
+
|
|
9
|
+
This Agreement is a Free Software license agreement that is the result
|
|
10
|
+
of discussions between its authors in order to ensure compliance with
|
|
11
|
+
the two main principles guiding its drafting:
|
|
12
|
+
|
|
13
|
+
* firstly, compliance with the principles governing the distribution
|
|
14
|
+
of Free Software: access to source code, broad rights granted to users,
|
|
15
|
+
* secondly, the election of a governing law, French law, with which it
|
|
16
|
+
is conformant, both as regards the law of torts and intellectual
|
|
17
|
+
property law, and the protection that it offers to both authors and
|
|
18
|
+
holders of the economic rights over software.
|
|
19
|
+
|
|
20
|
+
The authors of the CeCILL (for Ce[a] C[nrs] I[nria] L[ogiciel] L[ibre])
|
|
21
|
+
license are:
|
|
22
|
+
|
|
23
|
+
Commissariat à l'énergie atomique et aux énergies alternatives - CEA, a
|
|
24
|
+
public scientific, technical and industrial research establishment,
|
|
25
|
+
having its principal place of business at 25 rue Leblanc, immeuble Le
|
|
26
|
+
Ponant D, 75015 Paris, France.
|
|
27
|
+
|
|
28
|
+
Centre National de la Recherche Scientifique - CNRS, a public scientific
|
|
29
|
+
and technological establishment, having its principal place of business
|
|
30
|
+
at 3 rue Michel-Ange, 75794 Paris cedex 16, France.
|
|
31
|
+
|
|
32
|
+
Institut National de Recherche en Informatique et en Automatique -
|
|
33
|
+
Inria, a public scientific and technological establishment, having its
|
|
34
|
+
principal place of business at Domaine de Voluceau, Rocquencourt, BP
|
|
35
|
+
105, 78153 Le Chesnay cedex, France.
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
Preamble
|
|
39
|
+
|
|
40
|
+
The purpose of this Free Software license agreement is to grant users
|
|
41
|
+
the right to modify and redistribute the software governed by this
|
|
42
|
+
license within the framework of an open source distribution model.
|
|
43
|
+
|
|
44
|
+
The exercising of this right is conditional upon certain obligations for
|
|
45
|
+
users so as to preserve this status for all subsequent redistributions.
|
|
46
|
+
|
|
47
|
+
In consideration of access to the source code and the rights to copy,
|
|
48
|
+
modify and redistribute granted by the license, users are provided only
|
|
49
|
+
with a limited warranty and the software's author, the holder of the
|
|
50
|
+
economic rights, and the successive licensors only have limited liability.
|
|
51
|
+
|
|
52
|
+
In this respect, the risks associated with loading, using, modifying
|
|
53
|
+
and/or developing or reproducing the software by the user are brought to
|
|
54
|
+
the user's attention, given its Free Software status, which may make it
|
|
55
|
+
complicated to use, with the result that its use is reserved for
|
|
56
|
+
developers and experienced professionals having in-depth computer
|
|
57
|
+
knowledge. Users are therefore encouraged to load and test the
|
|
58
|
+
suitability of the software as regards their requirements in conditions
|
|
59
|
+
enabling the security of their systems and/or data to be ensured and,
|
|
60
|
+
more generally, to use and operate it in the same conditions of
|
|
61
|
+
security. This Agreement may be freely reproduced and published,
|
|
62
|
+
provided it is not altered, and that no provisions are either added or
|
|
63
|
+
removed herefrom.
|
|
64
|
+
|
|
65
|
+
This Agreement may apply to any or all software for which the holder of
|
|
66
|
+
the economic rights decides to submit the use thereof to its provisions.
|
|
67
|
+
|
|
68
|
+
Frequently asked questions can be found on the official website of the
|
|
69
|
+
CeCILL licenses family (http://www.cecill.info/index.en.html) for any
|
|
70
|
+
necessary clarification.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
Article 1 - DEFINITIONS
|
|
74
|
+
|
|
75
|
+
For the purpose of this Agreement, when the following expressions
|
|
76
|
+
commence with a capital letter, they shall have the following meaning:
|
|
77
|
+
|
|
78
|
+
Agreement: means this license agreement, and its possible subsequent
|
|
79
|
+
versions and annexes.
|
|
80
|
+
|
|
81
|
+
Software: means the software in its Object Code and/or Source Code form
|
|
82
|
+
and, where applicable, its documentation, "as is" when the Licensee
|
|
83
|
+
accepts the Agreement.
|
|
84
|
+
|
|
85
|
+
Initial Software: means the Software in its Source Code and possibly its
|
|
86
|
+
Object Code form and, where applicable, its documentation, "as is" when
|
|
87
|
+
it is first distributed under the terms and conditions of the Agreement.
|
|
88
|
+
|
|
89
|
+
Modified Software: means the Software modified by at least one
|
|
90
|
+
Contribution.
|
|
91
|
+
|
|
92
|
+
Source Code: means all the Software's instructions and program lines to
|
|
93
|
+
which access is required so as to modify the Software.
|
|
94
|
+
|
|
95
|
+
Object Code: means the binary files originating from the compilation of
|
|
96
|
+
the Source Code.
|
|
97
|
+
|
|
98
|
+
Holder: means the holder(s) of the economic rights over the Initial
|
|
99
|
+
Software.
|
|
100
|
+
|
|
101
|
+
Licensee: means the Software user(s) having accepted the Agreement.
|
|
102
|
+
|
|
103
|
+
Contributor: means a Licensee having made at least one Contribution.
|
|
104
|
+
|
|
105
|
+
Licensor: means the Holder, or any other individual or legal entity, who
|
|
106
|
+
distributes the Software under the Agreement.
|
|
107
|
+
|
|
108
|
+
Contribution: means any or all modifications, corrections, translations,
|
|
109
|
+
adaptations and/or new functions integrated into the Software by any or
|
|
110
|
+
all Contributors, as well as any or all Internal Modules.
|
|
111
|
+
|
|
112
|
+
Module: means a set of sources files including their documentation that
|
|
113
|
+
enables supplementary functions or services in addition to those offered
|
|
114
|
+
by the Software.
|
|
115
|
+
|
|
116
|
+
External Module: means any or all Modules, not derived from the
|
|
117
|
+
Software, so that this Module and the Software run in separate address
|
|
118
|
+
spaces, with one calling the other when they are run.
|
|
119
|
+
|
|
120
|
+
Internal Module: means any or all Module, connected to the Software so
|
|
121
|
+
that they both execute in the same address space.
|
|
122
|
+
|
|
123
|
+
GNU GPL: means the GNU General Public License version 2 or any
|
|
124
|
+
subsequent version, as published by the Free Software Foundation Inc.
|
|
125
|
+
|
|
126
|
+
GNU Affero GPL: means the GNU Affero General Public License version 3 or
|
|
127
|
+
any subsequent version, as published by the Free Software Foundation Inc.
|
|
128
|
+
|
|
129
|
+
EUPL: means the European Union Public License version 1.1 or any
|
|
130
|
+
subsequent version, as published by the European Commission.
|
|
131
|
+
|
|
132
|
+
Parties: mean both the Licensee and the Licensor.
|
|
133
|
+
|
|
134
|
+
These expressions may be used both in singular and plural form.
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
Article 2 - PURPOSE
|
|
138
|
+
|
|
139
|
+
The purpose of the Agreement is the grant by the Licensor to the
|
|
140
|
+
Licensee of a non-exclusive, transferable and worldwide license for the
|
|
141
|
+
Software as set forth in Article 5 <#scope> hereinafter for the whole
|
|
142
|
+
term of the protection granted by the rights over said Software.
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
Article 3 - ACCEPTANCE
|
|
146
|
+
|
|
147
|
+
3.1 The Licensee shall be deemed as having accepted the terms and
|
|
148
|
+
conditions of this Agreement upon the occurrence of the first of the
|
|
149
|
+
following events:
|
|
150
|
+
|
|
151
|
+
* (i) loading the Software by any or all means, notably, by
|
|
152
|
+
downloading from a remote server, or by loading from a physical medium;
|
|
153
|
+
* (ii) the first time the Licensee exercises any of the rights granted
|
|
154
|
+
hereunder.
|
|
155
|
+
|
|
156
|
+
3.2 One copy of the Agreement, containing a notice relating to the
|
|
157
|
+
characteristics of the Software, to the limited warranty, and to the
|
|
158
|
+
fact that its use is restricted to experienced users has been provided
|
|
159
|
+
to the Licensee prior to its acceptance as set forth in Article 3.1
|
|
160
|
+
<#accepting> hereinabove, and the Licensee hereby acknowledges that it
|
|
161
|
+
has read and understood it.
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
Article 4 - EFFECTIVE DATE AND TERM
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
4.1 EFFECTIVE DATE
|
|
168
|
+
|
|
169
|
+
The Agreement shall become effective on the date when it is accepted by
|
|
170
|
+
the Licensee as set forth in Article 3.1 <#accepting>.
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
4.2 TERM
|
|
174
|
+
|
|
175
|
+
The Agreement shall remain in force for the entire legal term of
|
|
176
|
+
protection of the economic rights over the Software.
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
Article 5 - SCOPE OF RIGHTS GRANTED
|
|
180
|
+
|
|
181
|
+
The Licensor hereby grants to the Licensee, who accepts, the following
|
|
182
|
+
rights over the Software for any or all use, and for the term of the
|
|
183
|
+
Agreement, on the basis of the terms and conditions set forth hereinafter.
|
|
184
|
+
|
|
185
|
+
Besides, if the Licensor owns or comes to own one or more patents
|
|
186
|
+
protecting all or part of the functions of the Software or of its
|
|
187
|
+
components, the Licensor undertakes not to enforce the rights granted by
|
|
188
|
+
these patents against successive Licensees using, exploiting or
|
|
189
|
+
modifying the Software. If these patents are transferred, the Licensor
|
|
190
|
+
undertakes to have the transferees subscribe to the obligations set
|
|
191
|
+
forth in this paragraph.
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
5.1 RIGHT OF USE
|
|
195
|
+
|
|
196
|
+
The Licensee is authorized to use the Software, without any limitation
|
|
197
|
+
as to its fields of application, with it being hereinafter specified
|
|
198
|
+
that this comprises:
|
|
199
|
+
|
|
200
|
+
1. permanent or temporary reproduction of all or part of the Software
|
|
201
|
+
by any or all means and in any or all form.
|
|
202
|
+
|
|
203
|
+
2. loading, displaying, running, or storing the Software on any or all
|
|
204
|
+
medium.
|
|
205
|
+
|
|
206
|
+
3. entitlement to observe, study or test its operation so as to
|
|
207
|
+
determine the ideas and principles behind any or all constituent
|
|
208
|
+
elements of said Software. This shall apply when the Licensee
|
|
209
|
+
carries out any or all loading, displaying, running, transmission or
|
|
210
|
+
storage operation as regards the Software, that it is entitled to
|
|
211
|
+
carry out hereunder.
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
5.2 ENTITLEMENT TO MAKE CONTRIBUTIONS
|
|
215
|
+
|
|
216
|
+
The right to make Contributions includes the right to translate, adapt,
|
|
217
|
+
arrange, or make any or all modifications to the Software, and the right
|
|
218
|
+
to reproduce the resulting software.
|
|
219
|
+
|
|
220
|
+
The Licensee is authorized to make any or all Contributions to the
|
|
221
|
+
Software provided that it includes an explicit notice that it is the
|
|
222
|
+
author of said Contribution and indicates the date of the creation thereof.
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
5.3 RIGHT OF DISTRIBUTION
|
|
226
|
+
|
|
227
|
+
In particular, the right of distribution includes the right to publish,
|
|
228
|
+
transmit and communicate the Software to the general public on any or
|
|
229
|
+
all medium, and by any or all means, and the right to market, either in
|
|
230
|
+
consideration of a fee, or free of charge, one or more copies of the
|
|
231
|
+
Software by any means.
|
|
232
|
+
|
|
233
|
+
The Licensee is further authorized to distribute copies of the modified
|
|
234
|
+
or unmodified Software to third parties according to the terms and
|
|
235
|
+
conditions set forth hereinafter.
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
5.3.1 DISTRIBUTION OF SOFTWARE WITHOUT MODIFICATION
|
|
239
|
+
|
|
240
|
+
The Licensee is authorized to distribute true copies of the Software in
|
|
241
|
+
Source Code or Object Code form, provided that said distribution
|
|
242
|
+
complies with all the provisions of the Agreement and is accompanied by:
|
|
243
|
+
|
|
244
|
+
1. a copy of the Agreement,
|
|
245
|
+
|
|
246
|
+
2. a notice relating to the limitation of both the Licensor's warranty
|
|
247
|
+
and liability as set forth in Articles 8 and 9,
|
|
248
|
+
|
|
249
|
+
and that, in the event that only the Object Code of the Software is
|
|
250
|
+
redistributed, the Licensee allows effective access to the full Source
|
|
251
|
+
Code of the Software for a period of at least three years from the
|
|
252
|
+
distribution of the Software, it being understood that the additional
|
|
253
|
+
acquisition cost of the Source Code shall not exceed the cost of the
|
|
254
|
+
data transfer.
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
5.3.2 DISTRIBUTION OF MODIFIED SOFTWARE
|
|
258
|
+
|
|
259
|
+
When the Licensee makes a Contribution to the Software, the terms and
|
|
260
|
+
conditions for the distribution of the resulting Modified Software
|
|
261
|
+
become subject to all the provisions of this Agreement.
|
|
262
|
+
|
|
263
|
+
The Licensee is authorized to distribute the Modified Software, in
|
|
264
|
+
source code or object code form, provided that said distribution
|
|
265
|
+
complies with all the provisions of the Agreement and is accompanied by:
|
|
266
|
+
|
|
267
|
+
1. a copy of the Agreement,
|
|
268
|
+
|
|
269
|
+
2. a notice relating to the limitation of both the Licensor's warranty
|
|
270
|
+
and liability as set forth in Articles 8 and 9,
|
|
271
|
+
|
|
272
|
+
and, in the event that only the object code of the Modified Software is
|
|
273
|
+
redistributed,
|
|
274
|
+
|
|
275
|
+
3. a note stating the conditions of effective access to the full source
|
|
276
|
+
code of the Modified Software for a period of at least three years
|
|
277
|
+
from the distribution of the Modified Software, it being understood
|
|
278
|
+
that the additional acquisition cost of the source code shall not
|
|
279
|
+
exceed the cost of the data transfer.
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
5.3.3 DISTRIBUTION OF EXTERNAL MODULES
|
|
283
|
+
|
|
284
|
+
When the Licensee has developed an External Module, the terms and
|
|
285
|
+
conditions of this Agreement do not apply to said External Module, that
|
|
286
|
+
may be distributed under a separate license agreement.
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
5.3.4 COMPATIBILITY WITH OTHER LICENSES
|
|
290
|
+
|
|
291
|
+
The Licensee can include a code that is subject to the provisions of one
|
|
292
|
+
of the versions of the GNU GPL, GNU Affero GPL and/or EUPL in the
|
|
293
|
+
Modified or unmodified Software, and distribute that entire code under
|
|
294
|
+
the terms of the same version of the GNU GPL, GNU Affero GPL and/or EUPL.
|
|
295
|
+
|
|
296
|
+
The Licensee can include the Modified or unmodified Software in a code
|
|
297
|
+
that is subject to the provisions of one of the versions of the GNU GPL,
|
|
298
|
+
GNU Affero GPL and/or EUPL and distribute that entire code under the
|
|
299
|
+
terms of the same version of the GNU GPL, GNU Affero GPL and/or EUPL.
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
Article 6 - INTELLECTUAL PROPERTY
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
6.1 OVER THE INITIAL SOFTWARE
|
|
306
|
+
|
|
307
|
+
The Holder owns the economic rights over the Initial Software. Any or
|
|
308
|
+
all use of the Initial Software is subject to compliance with the terms
|
|
309
|
+
and conditions under which the Holder has elected to distribute its work
|
|
310
|
+
and no one shall be entitled to modify the terms and conditions for the
|
|
311
|
+
distribution of said Initial Software.
|
|
312
|
+
|
|
313
|
+
The Holder undertakes that the Initial Software will remain ruled at
|
|
314
|
+
least by this Agreement, for the duration set forth in Article 4.2 <#term>.
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
6.2 OVER THE CONTRIBUTIONS
|
|
318
|
+
|
|
319
|
+
The Licensee who develops a Contribution is the owner of the
|
|
320
|
+
intellectual property rights over this Contribution as defined by
|
|
321
|
+
applicable law.
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
6.3 OVER THE EXTERNAL MODULES
|
|
325
|
+
|
|
326
|
+
The Licensee who develops an External Module is the owner of the
|
|
327
|
+
intellectual property rights over this External Module as defined by
|
|
328
|
+
applicable law and is free to choose the type of agreement that shall
|
|
329
|
+
govern its distribution.
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
6.4 JOINT PROVISIONS
|
|
333
|
+
|
|
334
|
+
The Licensee expressly undertakes:
|
|
335
|
+
|
|
336
|
+
1. not to remove, or modify, in any manner, the intellectual property
|
|
337
|
+
notices attached to the Software;
|
|
338
|
+
|
|
339
|
+
2. to reproduce said notices, in an identical manner, in the copies of
|
|
340
|
+
the Software modified or not.
|
|
341
|
+
|
|
342
|
+
The Licensee undertakes not to directly or indirectly infringe the
|
|
343
|
+
intellectual property rights on the Software of the Holder and/or
|
|
344
|
+
Contributors, and to take, where applicable, vis-à-vis its staff, any
|
|
345
|
+
and all measures required to ensure respect of said intellectual
|
|
346
|
+
property rights of the Holder and/or Contributors.
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
Article 7 - RELATED SERVICES
|
|
350
|
+
|
|
351
|
+
7.1 Under no circumstances shall the Agreement oblige the Licensor to
|
|
352
|
+
provide technical assistance or maintenance services for the Software.
|
|
353
|
+
|
|
354
|
+
However, the Licensor is entitled to offer this type of services. The
|
|
355
|
+
terms and conditions of such technical assistance, and/or such
|
|
356
|
+
maintenance, shall be set forth in a separate instrument. Only the
|
|
357
|
+
Licensor offering said maintenance and/or technical assistance services
|
|
358
|
+
shall incur liability therefor.
|
|
359
|
+
|
|
360
|
+
7.2 Similarly, any Licensor is entitled to offer to its licensees, under
|
|
361
|
+
its sole responsibility, a warranty, that shall only be binding upon
|
|
362
|
+
itself, for the redistribution of the Software and/or the Modified
|
|
363
|
+
Software, under terms and conditions that it is free to decide. Said
|
|
364
|
+
warranty, and the financial terms and conditions of its application,
|
|
365
|
+
shall be subject of a separate instrument executed between the Licensor
|
|
366
|
+
and the Licensee.
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
Article 8 - LIABILITY
|
|
370
|
+
|
|
371
|
+
8.1 Subject to the provisions of Article 8.2, the Licensee shall be
|
|
372
|
+
entitled to claim compensation for any direct loss it may have suffered
|
|
373
|
+
from the Software as a result of a fault on the part of the relevant
|
|
374
|
+
Licensor, subject to providing evidence thereof.
|
|
375
|
+
|
|
376
|
+
8.2 The Licensor's liability is limited to the commitments made under
|
|
377
|
+
this Agreement and shall not be incurred as a result of in particular:
|
|
378
|
+
(i) loss due the Licensee's total or partial failure to fulfill its
|
|
379
|
+
obligations, (ii) direct or consequential loss that is suffered by the
|
|
380
|
+
Licensee due to the use or performance of the Software, and (iii) more
|
|
381
|
+
generally, any consequential loss. In particular the Parties expressly
|
|
382
|
+
agree that any or all pecuniary or business loss (i.e. loss of data,
|
|
383
|
+
loss of profits, operating loss, loss of customers or orders,
|
|
384
|
+
opportunity cost, any disturbance to business activities) or any or all
|
|
385
|
+
legal proceedings instituted against the Licensee by a third party,
|
|
386
|
+
shall constitute consequential loss and shall not provide entitlement to
|
|
387
|
+
any or all compensation from the Licensor.
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
Article 9 - WARRANTY
|
|
391
|
+
|
|
392
|
+
9.1 The Licensee acknowledges that the scientific and technical
|
|
393
|
+
state-of-the-art when the Software was distributed did not enable all
|
|
394
|
+
possible uses to be tested and verified, nor for the presence of
|
|
395
|
+
possible defects to be detected. In this respect, the Licensee's
|
|
396
|
+
attention has been drawn to the risks associated with loading, using,
|
|
397
|
+
modifying and/or developing and reproducing the Software which are
|
|
398
|
+
reserved for experienced users.
|
|
399
|
+
|
|
400
|
+
The Licensee shall be responsible for verifying, by any or all means,
|
|
401
|
+
the suitability of the product for its requirements, its good working
|
|
402
|
+
order, and for ensuring that it shall not cause damage to either persons
|
|
403
|
+
or properties.
|
|
404
|
+
|
|
405
|
+
9.2 The Licensor hereby represents, in good faith, that it is entitled
|
|
406
|
+
to grant all the rights over the Software (including in particular the
|
|
407
|
+
rights set forth in Article 5 <#scope>).
|
|
408
|
+
|
|
409
|
+
9.3 The Licensee acknowledges that the Software is supplied "as is" by
|
|
410
|
+
the Licensor without any other express or tacit warranty, other than
|
|
411
|
+
that provided for in Article 9.2 <#good-faith> and, in particular,
|
|
412
|
+
without any warranty as to its commercial value, its secured, safe,
|
|
413
|
+
innovative or relevant nature.
|
|
414
|
+
|
|
415
|
+
Specifically, the Licensor does not warrant that the Software is free
|
|
416
|
+
from any error, that it will operate without interruption, that it will
|
|
417
|
+
be compatible with the Licensee's own equipment and software
|
|
418
|
+
configuration, nor that it will meet the Licensee's requirements.
|
|
419
|
+
|
|
420
|
+
9.4 The Licensor does not either expressly or tacitly warrant that the
|
|
421
|
+
Software does not infringe any third party intellectual property right
|
|
422
|
+
relating to a patent, software or any other property right. Therefore,
|
|
423
|
+
the Licensor disclaims any and all liability towards the Licensee
|
|
424
|
+
arising out of any or all proceedings for infringement that may be
|
|
425
|
+
instituted in respect of the use, modification and redistribution of the
|
|
426
|
+
Software. Nevertheless, should such proceedings be instituted against
|
|
427
|
+
the Licensee, the Licensor shall provide it with technical and legal
|
|
428
|
+
expertise for its defense. Such technical and legal expertise shall be
|
|
429
|
+
decided on a case-by-case basis between the relevant Licensor and the
|
|
430
|
+
Licensee pursuant to a memorandum of understanding. The Licensor
|
|
431
|
+
disclaims any and all liability as regards the Licensee's use of the
|
|
432
|
+
name of the Software. No warranty is given as regards the existence of
|
|
433
|
+
prior rights over the name of the Software or as regards the existence
|
|
434
|
+
of a trademark.
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
Article 10 - TERMINATION
|
|
438
|
+
|
|
439
|
+
10.1 In the event of a breach by the Licensee of its obligations
|
|
440
|
+
hereunder, the Licensor may automatically terminate this Agreement
|
|
441
|
+
thirty (30) days after notice has been sent to the Licensee and has
|
|
442
|
+
remained ineffective.
|
|
443
|
+
|
|
444
|
+
10.2 A Licensee whose Agreement is terminated shall no longer be
|
|
445
|
+
authorized to use, modify or distribute the Software. However, any
|
|
446
|
+
licenses that it may have granted prior to termination of the Agreement
|
|
447
|
+
shall remain valid subject to their having been granted in compliance
|
|
448
|
+
with the terms and conditions hereof.
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
Article 11 - MISCELLANEOUS
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
11.1 EXCUSABLE EVENTS
|
|
455
|
+
|
|
456
|
+
Neither Party shall be liable for any or all delay, or failure to
|
|
457
|
+
perform the Agreement, that may be attributable to an event of force
|
|
458
|
+
majeure, an act of God or an outside cause, such as defective
|
|
459
|
+
functioning or interruptions of the electricity or telecommunications
|
|
460
|
+
networks, network paralysis following a virus attack, intervention by
|
|
461
|
+
government authorities, natural disasters, water damage, earthquakes,
|
|
462
|
+
fire, explosions, strikes and labor unrest, war, etc.
|
|
463
|
+
|
|
464
|
+
11.2 Any failure by either Party, on one or more occasions, to invoke
|
|
465
|
+
one or more of the provisions hereof, shall under no circumstances be
|
|
466
|
+
interpreted as being a waiver by the interested Party of its right to
|
|
467
|
+
invoke said provision(s) subsequently.
|
|
468
|
+
|
|
469
|
+
11.3 The Agreement cancels and replaces any or all previous agreements,
|
|
470
|
+
whether written or oral, between the Parties and having the same
|
|
471
|
+
purpose, and constitutes the entirety of the agreement between said
|
|
472
|
+
Parties concerning said purpose. No supplement or modification to the
|
|
473
|
+
terms and conditions hereof shall be effective as between the Parties
|
|
474
|
+
unless it is made in writing and signed by their duly authorized
|
|
475
|
+
representatives.
|
|
476
|
+
|
|
477
|
+
11.4 In the event that one or more of the provisions hereof were to
|
|
478
|
+
conflict with a current or future applicable act or legislative text,
|
|
479
|
+
said act or legislative text shall prevail, and the Parties shall make
|
|
480
|
+
the necessary amendments so as to comply with said act or legislative
|
|
481
|
+
text. All other provisions shall remain effective. Similarly, invalidity
|
|
482
|
+
of a provision of the Agreement, for any reason whatsoever, shall not
|
|
483
|
+
cause the Agreement as a whole to be invalid.
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
11.5 LANGUAGE
|
|
487
|
+
|
|
488
|
+
The Agreement is drafted in both French and English and both versions
|
|
489
|
+
are deemed authentic.
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
Article 12 - NEW VERSIONS OF THE AGREEMENT
|
|
493
|
+
|
|
494
|
+
12.1 Any person is authorized to duplicate and distribute copies of this
|
|
495
|
+
Agreement.
|
|
496
|
+
|
|
497
|
+
12.2 So as to ensure coherence, the wording of this Agreement is
|
|
498
|
+
protected and may only be modified by the authors of the License, who
|
|
499
|
+
reserve the right to periodically publish updates or new versions of the
|
|
500
|
+
Agreement, each with a separate number. These subsequent versions may
|
|
501
|
+
address new issues encountered by Free Software.
|
|
502
|
+
|
|
503
|
+
12.3 Any Software distributed under a given version of the Agreement may
|
|
504
|
+
only be subsequently distributed under the same version of the Agreement
|
|
505
|
+
or a subsequent version, subject to the provisions of Article 5.3.4
|
|
506
|
+
<#compatibility>.
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
Article 13 - GOVERNING LAW AND JURISDICTION
|
|
510
|
+
|
|
511
|
+
13.1 The Agreement is governed by French law. The Parties agree to
|
|
512
|
+
endeavor to seek an amicable solution to any disagreements or disputes
|
|
513
|
+
that may arise during the performance of the Agreement.
|
|
514
|
+
|
|
515
|
+
13.2 Failing an amicable solution within two (2) months as from their
|
|
516
|
+
occurrence, and unless emergency proceedings are necessary, the
|
|
517
|
+
disagreements or disputes shall be referred to the Paris Courts having
|
|
518
|
+
jurisdiction, by the more diligent Party.
|
package/README.md
CHANGED
|
@@ -57,8 +57,8 @@ restores the original typed label table; omitting it exposes native class IDs.
|
|
|
57
57
|
import * as n4m from "@nirs4all/methods";
|
|
58
58
|
|
|
59
59
|
await n4m.loadModule();
|
|
60
|
-
console.log(n4m.version()); // "1.3.
|
|
61
|
-
console.log(n4m.abiVersion()); // [2,
|
|
60
|
+
console.log(n4m.version()); // "1.3.14+abi.2.22.0"
|
|
61
|
+
console.log(n4m.abiVersion()); // [2, 22, 0]
|
|
62
62
|
|
|
63
63
|
const rows = 40, cols = 6;
|
|
64
64
|
const X = new Float64Array(rows * cols); // row-major
|
|
@@ -223,3 +223,155 @@ bindings/js/
|
|
|
223
223
|
├── run_pop_aom.mjs
|
|
224
224
|
└── run_new_pack.mjs # broad-model-pack smoke
|
|
225
225
|
```
|
|
226
|
+
|
|
227
|
+
### SNV parameter fidelity
|
|
228
|
+
|
|
229
|
+
`ppCreate("StandardNormalVariate")` supports only omitted params or an actual
|
|
230
|
+
empty Array. Every other value, including typed arrays and default-looking
|
|
231
|
+
nonempty vectors, refuses before module access. Use the existing named `SNV`
|
|
232
|
+
and `RolePipeline` APIs for `with_mean`, `with_std` and `ddof`; no positional
|
|
233
|
+
SNV codec exists. Named-role flags must be real booleans. ddof must be a finite
|
|
234
|
+
integer number in `[0, INT32_MAX]`; null, strings, boxed scalars and bigint do
|
|
235
|
+
not silently coerce. Admission precedes native lookup/allocation/setters.
|
|
236
|
+
|
|
237
|
+
The owner rejects an invalid variance denominator on nonempty scaled input,
|
|
238
|
+
while centering-only remains valid. Out-of-range raw WASM integer setters
|
|
239
|
+
can still reach the generic exception-disabled i32 adapter abort: that
|
|
240
|
+
separate raw-ABI issue is not qualified by the SNV host validator.
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
### Checked raw integer narrowing
|
|
244
|
+
|
|
245
|
+
The generic raw C ABI stores integer parameters as int64. A kernel that needs
|
|
246
|
+
int32 rejects an out-of-range value with `N4M_ERR_INVALID_ARGUMENT` and
|
|
247
|
+
`integer parameter exceeds int32`, rather than truncating it. This check occurs
|
|
248
|
+
when the adapter uses the value (for example, SNV fit), not necessarily at
|
|
249
|
+
parameter storage or estimator creation. Genuine wide parameters such as seeds
|
|
250
|
+
remain int64. Named SNV host admission and positional `ppCreate` are separate;
|
|
251
|
+
SNV positional options still require an empty array.
|
|
252
|
+
|
|
253
|
+
Emscripten C++ objects use JavaScript-based `-fexceptions`, and the owner CMake
|
|
254
|
+
static target propagates the matching final-link option. Embedders that discard
|
|
255
|
+
CMake usage requirements must preserve this profile. This does not select native
|
|
256
|
+
Wasm EH or change browser/Node runtime requirements. Always deploy a matching
|
|
257
|
+
WASM/glue pair; default assets are refreshed only as part of the agreed release.
|
|
258
|
+
This JavaScript-EH default applies to builds without the Rust mixed-effects
|
|
259
|
+
backend. Builds with `N4M_WITH_MIXEFF` (the `emscripten-analysis` package) link a
|
|
260
|
+
Rust panic-unwind archive, so CMake compiles and links every C++ object with
|
|
261
|
+
native Wasm exception handling instead, whatever `N4M_WASM_EH_MODEL` says, and that
|
|
262
|
+
package requires browser/Node Wasm exception-handling support. This is a build
|
|
263
|
+
requirement of the analysis package only; it does not promote the private
|
|
264
|
+
native-experimental candidate below.
|
|
265
|
+
|
|
266
|
+
`npm test` includes `test/run_raw_i32_status.mjs`. With no qualification variables,
|
|
267
|
+
it uses this package's `dist/n4m.js` and `dist/n4m.wasm`. Qualification supplies all
|
|
268
|
+
four of `N4M_WASM_PATH`, `N4M_WASM_GLUE_PATH`, `N4M_EXPECTED_WASM_SHA256` and
|
|
269
|
+
`N4M_EXPECTED_GLUE_SHA256`; partial configuration or a hash mismatch fails before
|
|
270
|
+
module execution. The script isolates raw cases in children and checks statuses,
|
|
271
|
+
output guards, failed-refit preservation and repeated-refusal memory stability.
|
|
272
|
+
`--parity` emits valid existing SNV fixture outputs and retained positive
|
|
273
|
+
robust-PLS/selector controls as exact bytes for comparison with the retained baseline. An abort is a failure, never a typed refusal.
|
|
274
|
+
|
|
275
|
+
## Private Native Wasm EH candidate (not a shipping profile)
|
|
276
|
+
|
|
277
|
+
`N4M_WASM_EH_MODEL` defaults to `javascript`. Only the explicit Emscripten
|
|
278
|
+
`-DN4M_WASM_EH_MODEL=native-experimental` selects the private experiment;
|
|
279
|
+
unknown values or a native-experimental request on a non-Emscripten toolchain
|
|
280
|
+
are refused. One matching compile/link mode covers all 143 linked owner C++
|
|
281
|
+
objects. C sources require no C++ exception option. No math, public ABI/status,
|
|
282
|
+
owner state format, scientific profile, or default package asset changes.
|
|
283
|
+
|
|
284
|
+
Experimental outputs live only in `native-eh-candidate/` in the existing JS
|
|
285
|
+
binary directory. The normal pair has a private capability sidecar and a
|
|
286
|
+
candidate-only pre-js gate. Before candidate instantiation, the gate requires
|
|
287
|
+
the legacy `try`, `catch`, `throw`, `catch_all`, `rethrow`, and `delegate`
|
|
288
|
+
instruction set, plus JS i32 `WebAssembly.Tag`/`Exception`, `is`, `getArg`, and
|
|
289
|
+
`traceStack`. Missing WebAssembly refuses with `RuntimeUnavailable`; a present
|
|
290
|
+
runtime lacking this feature refuses with `Unsupported`, both naming
|
|
291
|
+
`wasm-exception-handling`. Artifact corruption and unrelated instantiation
|
|
292
|
+
errors are not reclassified. There is no retry, alternate engine or JS-EH
|
|
293
|
+
fallback. The public `loadModule` assigns its cached module only after the
|
|
294
|
+
factory resolves; direct factory loading has the same pre-js admission gate.
|
|
295
|
+
The emitted `__cpp_exception` tag is checked after instantiation as a runtime
|
|
296
|
+
witness, not used as a host-refusal decision.
|
|
297
|
+
|
|
298
|
+
The explicit, `EXCLUDE_FROM_ALL` target `n4m_wasm_eh_boundary_tests` links the
|
|
299
|
+
same owner archive plus one private allocator fixture. Only this separate pair
|
|
300
|
+
has fault-injection exports. It checks real owner guards returning 9 for
|
|
301
|
+
`std::bad_alloc` and 255 for a non-allocating test exception, then same-module
|
|
302
|
+
valid recovery. It is never installed or staged into package/default assets.
|
|
303
|
+
`test/run_native_eh_candidate.mjs` requires exact pair, sidecar, archive,
|
|
304
|
+
public-entrypoint and fixture paths/hashes; its missing-feature simulations
|
|
305
|
+
are isolated and labelled. These source tests still require an independently
|
|
306
|
+
admitted real build and runtime qualification.
|
|
307
|
+
|
|
308
|
+
Earlier Node 22.21.1/24.16.0 synthetic feature observations do not qualify this
|
|
309
|
+
candidate, browsers, workers or other platforms. Browser adoption and frontend
|
|
310
|
+
pins/assets require a joint maintainer batch. EH execution requirements are
|
|
311
|
+
separate from `native-workflow@1`, `native-conformal@1` and fitted-state
|
|
312
|
+
readability, none of which grants execution permission. Cleanup while foreign
|
|
313
|
+
JS aborts unwind is not claimed equivalent across EH modes. The previous
|
|
314
|
+
JS-EH pair's binary/glue size and four of six fixed timing failures remain;
|
|
315
|
+
this experiment grants no cost waiver. Future candidate qualification retains
|
|
316
|
+
all C1–C10 conditions, the six causal mutants, byte anchors and unchanged 1.25
|
|
317
|
+
size/per-row timing limits. No candidate runtime or browser support is claimed
|
|
318
|
+
from source or configuration alone.
|
|
319
|
+
|
|
320
|
+
### Private qualification corrections (source only)
|
|
321
|
+
|
|
322
|
+
The private fixture now snapshots both live C++ `new` allocations and allocator
|
|
323
|
+
in-use bytes (`mallinfo().uordblks`) into caller-provided storage. Successful
|
|
324
|
+
ordinary/aligned `new` increments the first metric; matching non-null deletes
|
|
325
|
+
decrement it. The second metric also covers malloc-backed exception storage.
|
|
326
|
+
Both must increase with a live valid owner object and return **exactly** to the
|
|
327
|
+
same baseline after warmup, valid destroy, every injected fault and every
|
|
328
|
+
recovery. No leak allowance or unchecked exception warmup is accepted.
|
|
329
|
+
Linear-memory capacity is retained only as an additional bounded check; its
|
|
330
|
+
stability alone is not cleanup evidence. These assertions remain unexecuted.
|
|
331
|
+
|
|
332
|
+
One valid `create` in the same module/run determines the allocation count,
|
|
333
|
+
verified by a second valid create. `n4m_test_eh_arm(fault, skip)` then visits
|
|
334
|
+
every allocation index for both real exception types, including allocation
|
|
335
|
+
sites with resolved parameters and adapters already live. Each must return the
|
|
336
|
+
owner status/diagnostic with null output and exactly one injected throw, then
|
|
337
|
+
permit valid create/fit/transform with unchanged byte anchors. A bounded repeat
|
|
338
|
+
continues the same exact memory checks. Only the private boundary pair exposes
|
|
339
|
+
the single added memory-snapshot export; the normal pair does not.
|
|
340
|
+
|
|
341
|
+
Both Module and sidecar declare `encoding: wasm-legacy-eh`. This is a declared
|
|
342
|
+
requirement, not proof of emitted code. A future pinned installed disassembler
|
|
343
|
+
must decode the complete actual binary and compare its EH encoding/opcodes to
|
|
344
|
+
the preflight coverage; unexpected encoding/opcodes require a reviewed source
|
|
345
|
+
successor. The launcher additionally checks absence of `invoke_` imports and
|
|
346
|
+
isolated corrupt-artifact errors distinct from host-capability refusals.
|
|
347
|
+
|
|
348
|
+
The explicit `--tests-first-js-eh` route admits the exact old JS-EH pair using
|
|
349
|
+
an independently admitted notes-only sidecar. It loads the real factory and
|
|
350
|
+
checks actual context/metadata calls, then must fail at
|
|
351
|
+
`NATIVE_EH_REQUIRED_CONTRACT_ABSENT` before later C++ tag requirements. A missing
|
|
352
|
+
file, import error or another assertion is not that red. No red is claimed from
|
|
353
|
+
source alone. Full recomposed Python qualification must keep the accepted R
|
|
354
|
+
availability environment and three R selectors, isolated pytest plugins/cache
|
|
355
|
+
and fresh bounded basetemps. All prior cost failures and required gates remain.
|
|
356
|
+
|
|
357
|
+
## Ranking candidates
|
|
358
|
+
|
|
359
|
+
`rank(scores, present, options)` sends a row-major `Matrix` of scores and a
|
|
360
|
+
required row-major `Uint8Array` presence mask to the native ranking ABI. Each
|
|
361
|
+
row is a comparable block and each column a candidate. Mask entries are 0 or 1;
|
|
362
|
+
masked scores may be nonfinite. For example:
|
|
363
|
+
|
|
364
|
+
```js
|
|
365
|
+
import { loadModule, rank } from "@nirs4all/methods";
|
|
366
|
+
await loadModule();
|
|
367
|
+
const result = rank({ rows: 2, cols: 2, data: Float64Array.of(1, 2, 3, 2) },
|
|
368
|
+
Uint8Array.of(1, 1, 1, 1),
|
|
369
|
+
{ method: "bradley_terry", higher_is_better: false });
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
Methods are `average_rank`, `elo`, `bradley_terry`, `trueskill` and `openskill`.
|
|
373
|
+
The result identifies the native variant and effective options. Unavailable
|
|
374
|
+
quantities are `null`, including ranks across disconnected comparison graphs.
|
|
375
|
+
Bayesian uncertainty is an approximate algorithm posterior standard deviation,
|
|
376
|
+
not a frequentist standard error. The Friedman statistic is descriptive and
|
|
377
|
+
uses complete blocks; the caller must assess independence.
|