7
0
This commit is contained in:
Fridrich Štrba
2025-10-06 15:42:03 +02:00
parent 578fcc0720
commit 90e4bc88cc
8 changed files with 110 additions and 12 deletions

13
_service Normal file
View File

@@ -0,0 +1,13 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">https://github.com/h2oai/xgboost-predictor.git</param>
<param name="revision">5f3fb2b</param>
<param name="versionformat">0.3.20</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

16
aggregator.pom Normal file
View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns='http://maven.apache.org/POM/4.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd'>
<modelVersion>4.0.0</modelVersion>
<groupId>org.opensuse.xmvn.xgboost-predictor</groupId>
<artifactId>aggregator</artifactId>
<version>any</version>
<packaging>pom</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<modules>
<module>h2o-tree-api</module>
<module>xgboost-predictor</module>
</modules>
</project>

39
h2o-tree-api-0.3.20.pom Normal file
View File

@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>ai.h2o</groupId>
<artifactId>h2o-tree-api</artifactId>
<version>0.3.20</version>
<name>h2o-tree-api</name>
<description>Pure Java implementation of XGBoost predictor for online prediction tasks</description>
<url>https://github.com/h2oai/xgboost-predictor</url>
<inceptionYear>2018</inceptionYear>
<organization>
<name>H2O.ai</name>
<url>http://h2o.ai/</url>
</organization>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>support</id>
<name>H2O.ai Support</name>
<email>support@h2o.ai</email>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/h2oai/xgboost-predictor.git</connection>
<developerConnection>scm:git:git@github.com:h2oai/xgboost-predictor.git</developerConnection>
<url>https://github.com/h2oai/xgboost-predictor</url>
</scm>
<issueManagement>
<system>Jira</system>
<url>http://jira.h2o.ai</url>
</issueManagement>
</project>

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:37a130ed1bb2cd9bc004d5c30d57d36662f8419a4f606384658b37369825233b
size 70929

View File

@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>ai.h2o</groupId>
<artifactId>xgboost-predictor</artifactId>
<version>0.3.3</version>
<version>0.3.20</version>
<name>xgboost-predictor</name>
<description>Pure Java implementation of XGBoost predictor for online prediction tasks</description>
<url>https://github.com/h2oai/xgboost-predictor</url>
@@ -37,6 +37,12 @@
<url>http://jira.h2o.ai</url>
</issueManagement>
<dependencies>
<dependency>
<groupId>ai.h2o</groupId>
<artifactId>h2o-tree-api</artifactId>
<version>0.3.20</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.jafama</groupId>
<artifactId>jafama</artifactId>

BIN
xgboost-predictor-0.3.20.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Mon Oct 6 13:42:10 UTC 2025 - Fridrich Strba <fstrba@suse.com>
- Upgrade to version 0.3.20
* Changes
+ Make the fix in PR backwards compatible in order to use it
in H2O-3 and provide same predictions for older MOJOs and pass
the compatibility test.
+ Change the order of the floating point operation to match
prediction in native xgboost version 1.3.0 and newer
+ Add support for reg:logistic and rank:ndcg oobjectives.
+ Revert renaming of getWeight.
+ Expose RegTreeNode stats.
+ Fix loading an empty gblinear booster
+ Upgrade to XGBoost v1.0.0 support.
- Package now contains two artifacts:
* xgboost-predictor and
* h2o-tree-api
- Remove unneeded alias
-------------------------------------------------------------------
Thu Oct 26 05:51:05 UTC 2023 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package xgboost-predictor
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,14 +17,16 @@
Name: xgboost-predictor
Version: 0.3.3
Version: 0.3.20
Release: 0
Summary: Pure Java implementation of Xgboost predictor for online prediction tasks
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://github.com/h2oai/%{name}
Source0: https://github.com/h2oai/%{name}/archive/v%{version}.tar.gz
Source0: %{name}-%{version}.tar.xz
Source1: https://repo1.maven.org/maven2/ai/h2o/%{name}/%{version}/%{name}-%{version}.pom
Source2: https://repo1.maven.org/maven2/ai/h2o/h2o-tree-api/%{version}/h2o-tree-api-%{version}.pom
Source100: aggregator.pom
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
@@ -42,11 +44,13 @@ Group: Documentation/HTML
%{summary}
%prep
%setup -q -n %{name}-%{version}/%{name}
%setup -q
cp %{SOURCE1} pom.xml
cp %{SOURCE100} pom.xml
cp %{SOURCE1} %{name}/pom.xml
cp %{SOURCE2} h2o-tree-api/pom.xml
%{mvn_alias} : biz.k11i:
%mvn_package :aggregator __noinstall
%build
%{mvn_build} -f -- \
@@ -60,9 +64,9 @@ cp %{SOURCE1} pom.xml
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%license ../LICENSE
%license LICENSE
%files javadoc -f .mfiles-javadoc
%license ../LICENSE
%license LICENSE
%changelog