catboost 1.26.0 → 1.27.0

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/DEPLOYMENT.md CHANGED
@@ -41,7 +41,7 @@ npm run compile_build_scripts
41
41
  to build package from source.
42
42
  3. Run
43
43
  ```
44
- npm run test --have-cuda
44
+ npm run test -- --have-cuda
45
45
  ```
46
46
  to verify that the tests are passing.
47
47
  1. Run
package/README.md CHANGED
@@ -11,6 +11,12 @@ Install the package. You have two options:
11
11
  ```
12
12
  - Build package from source.
13
13
 
14
+ CatBoost Node.js package is a wrapper around [`libcatboostmodel` library](https://catboost.ai/docs/en/concepts/c-plus-plus-api_dynamic-c-pluplus-wrapper) with an exposed C API.
15
+
16
+ In order to build it some environment setup is necessary. Modern versions of CatBoost use CMake build system, build environment setup for CMake is described [here](https://catboost.ai/docs/en/installation/build-environment-setup-for-cmake), CatBoost versions before 1.2 used Ya Make build system, build environment setup for YaMake is described [here](https://catboost.ai/docs/en/installation/build-environment-setup-for-ya-make).
17
+
18
+ ------
19
+
14
20
  CatBoost source code is stored as a [Git](https://git-scm.com/) repository on GitHub at <https://github.com/catboost/catboost/>. You can obtain a local copy of this Git repository by running the following command from a command line interpreter (you need to have Git command line tools installed):
15
21
 
16
22
  ```sh
@@ -4,7 +4,7 @@ exports.execProcess = void 0;
4
4
  var child_process_1 = require("child_process");
5
5
  ;
6
6
  function execProcess(command) {
7
- var child = child_process_1.exec(command);
7
+ var child = child_process_1.spawn(command, [], { shell: true });
8
8
  return new Promise(function (resolve) {
9
9
  child.stdout.on('data', function (chunk) {
10
10
  console.log(chunk.toString());
package/config.json CHANGED
@@ -1,34 +1,34 @@
1
1
  {
2
2
  "linux-x64": [
3
3
  {
4
- "url": "https:/github.com/catboost/catboost/releases/download/v1.2.7/libcatboostmodel-linux-x86_64-1.2.7.so",
5
- "sha256": "d27a19c49a40626573f5b06c04762f3d9daafb79a667b4ac3b291d6988be5e58",
4
+ "url": "https:/github.com/catboost/catboost/releases/download/v1.2.10/libcatboostmodel-linux-x86_64-1.2.10.so",
5
+ "sha256": "de32f8e147ee8f969599a00b7145e8561b943e916b0132b811037f8f71952a0e",
6
6
  "targetFile": "libcatboostmodel.so"
7
7
  }
8
8
  ],
9
9
  "linux-arm64": [
10
10
  {
11
- "url": "https:/github.com/catboost/catboost/releases/download/v1.2.7/libcatboostmodel-linux-aarch64-1.2.7.so",
12
- "sha256": "ea9a9b590d6630bdc122b03cda1ae02c9de354a3ad27d3ada432d097eafeea92",
11
+ "url": "https:/github.com/catboost/catboost/releases/download/v1.2.10/libcatboostmodel-linux-aarch64-1.2.10.so",
12
+ "sha256": "d1b5d12f57ef72fd43505d9fbc1ea30d93d54ef0f305484c6bbfde8642e99a5b",
13
13
  "targetFile": "libcatboostmodel.so"
14
14
  }
15
15
  ],
16
16
  "darwin-universal2": [
17
17
  {
18
- "url": "https:/github.com/catboost/catboost/releases/download/v1.2.7/libcatboostmodel-darwin-universal2-1.2.7.dylib",
19
- "sha256": "9a61ede2b7b955d08b29b03e54f3f9a6e4d36b4e006a92ec0b56867cbb5a0eac",
18
+ "url": "https:/github.com/catboost/catboost/releases/download/v1.2.10/libcatboostmodel-darwin-universal2-1.2.10.dylib",
19
+ "sha256": "c31067d8df69e0be3dd353a06853d64f2e74bab1097512fc2d0db76add75514e",
20
20
  "targetFile": "libcatboostmodel.dylib"
21
21
  }
22
22
  ],
23
23
  "win32-x64": [
24
24
  {
25
- "url": "https:/github.com/catboost/catboost/releases/download/v1.2.7/catboostmodel-windows-x86_64-1.2.7.dll",
26
- "sha256": "9953ad56abe7e8a46f8eb046f38275b1238e4b24a3f76593f3de87a7586f9077",
25
+ "url": "https:/github.com/catboost/catboost/releases/download/v1.2.10/catboostmodel-windows-x86_64-1.2.10.dll",
26
+ "sha256": "668d8867940a0832accaad6004e249f11ecc48eb63eb1d65551cfdd37c1939ad",
27
27
  "targetFile": "catboostmodel.dll"
28
28
  },
29
29
  {
30
- "url": "https:/github.com/catboost/catboost/releases/download/v1.2.7/catboostmodel-windows-x86_64-1.2.7.lib",
31
- "sha256": "1d836f43e74f2165a02590987047a5e017d9be0c4376fed2002b672be0b600e6",
30
+ "url": "https:/github.com/catboost/catboost/releases/download/v1.2.10/catboostmodel-windows-x86_64-1.2.10.lib",
31
+ "sha256": "59b77bef6058548991d5eb942958999e0c3c21145f86bf0338d8f765d9975e9f",
32
32
  "targetFile": "catboostmodel.lib"
33
33
  }
34
34
  ]
@@ -6,7 +6,7 @@
6
6
 
7
7
  #define CATBOOST_APPLIER_MAJOR 1
8
8
  #define CATBOOST_APPLIER_MINOR 2
9
- #define CATBOOST_APPLIER_FIX 7
9
+ #define CATBOOST_APPLIER_FIX 10
10
10
 
11
11
  #if defined(__cplusplus)
12
12
  extern "C" {
@@ -76,14 +76,17 @@ CATBOOST_API void ModelCalcerDelete(ModelCalcerHandle* modelHandle);
76
76
  /**
77
77
  * If error occured will return stored exception message.
78
78
  * If no error occured, will return invalid pointer
79
- * @return
79
+ * The underlying variable is thread-local so:
80
+ * - it is thread-safe to get it
81
+ * - indicates only errors that happened in the current thread
82
+ * @return Error message string. Uses UTF-8 encoding
80
83
  */
81
84
  CATBOOST_API const char* GetErrorString();
82
85
 
83
86
  /**
84
87
  * Load model from file into given model handle
85
88
  * @param calcer
86
- * @param filename
89
+ * @param filename path to the file. Uses UTF-8 encoding
87
90
  * @return false if error occured
88
91
  */
89
92
  CATBOOST_API bool LoadFullModelFromFile(
@@ -102,6 +105,19 @@ CATBOOST_API bool LoadFullModelFromBuffer(
102
105
  const void* binaryBuffer,
103
106
  size_t binaryBufferSize);
104
107
 
108
+
109
+ /**
110
+ * Use model directly from given memory region with zero-copy method
111
+ * @param calcer
112
+ * @param binaryBuffer pointer to a memory buffer where model file is mapped
113
+ * @param binaryBufferSize size of the buffer in bytes
114
+ * @return false if error occured
115
+ */
116
+ CATBOOST_API bool LoadFullModelZeroCopy(
117
+ ModelCalcerHandle* modelHandle,
118
+ const void* binaryBuffer,
119
+ size_t binaryBufferSize);
120
+
105
121
  /**
106
122
  * Use CUDA GPU device for model evaluation
107
123
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catboost",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "description": "Node bindings for CatBoost library to apply models. CatBoost is a machine learning method based on gradient boosting over decision trees.",
5
5
  "keywords": [
6
6
  "catboost",