Skip to content

Commit 1a384f6

Browse files
author
Ben Auffarth
committed
fix typo in language detection; language was never written out
1 parent 420b882 commit 1a384f6

File tree

3 files changed

+48
-3
lines changed

3 files changed

+48
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
.classpath
33
.project
44
/.settings/
5+
.idea/
6+
*.iml
57

68
# Mobile Tools for Java (J2ME)
79
.mtj.tmp/

pom.xml

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@
1212
<name>lightgbm_predict4j</name>
1313
<url>http://maven.apache.org</url>
1414

15+
<properties>
16+
<!-- github server corresponds to entry in ~/.m2/settings.xml -->
17+
<github.global.server>github</github.global.server>
18+
</properties>
19+
20+
<distributionManagement>
21+
<repository>
22+
<id>internal.repo</id>
23+
<name>Temporary Staging Repository</name>
24+
<url>file://${project.build.directory}/mvn-repo</url>
25+
</repository>
26+
</distributionManagement>
27+
1528
<dependencies>
1629
<dependency>
1730
<groupId>commons-io</groupId>
@@ -80,7 +93,37 @@
8093
<target>1.7</target>
8194
</configuration>
8295
</plugin>
83-
</plugins>
84-
</build>
96+
<plugin>
97+
<artifactId>maven-deploy-plugin</artifactId>
98+
<version>2.8.1</version>
99+
<configuration>
100+
<altDeploymentRepository>internal.repo::default::file://${project.build.directory}/mvn-repo</altDeploymentRepository>
101+
</configuration>
102+
</plugin>
103+
<plugin>
104+
<groupId>com.github.github</groupId>
105+
<artifactId>site-maven-plugin</artifactId>
106+
<version>0.11</version>
107+
<configuration>
108+
<message>Maven artifacts for ${project.version}</message> <!-- git commit message -->
109+
<noJekyll>true</noJekyll> <!-- disable webpage processing -->
110+
<outputDirectory>${project.build.directory}/mvn-repo</outputDirectory> <!-- matches distribution management repository url above -->
111+
<branch>refs/heads/mvn-repo</branch> <!-- remote branch name -->
112+
<includes><include>**/*</include></includes>
113+
<repositoryName>lightgbm_predict4j</repositoryName> <!-- github repo name -->
114+
<repositoryOwner>benman1</repositoryOwner> <!-- github username -->
115+
</configuration>
116+
<executions>
117+
<!-- run site-maven-plugin's 'site' target as part of the build's normal 'deploy' phase -->
118+
<execution>
119+
<goals>
120+
<goal>site</goal>
121+
</goals>
122+
<phase>deploy</phase>
123+
</execution>
124+
</executions>
125+
</plugin>
126+
</plugins>
127+
</build>
85128

86129
</project>

src/main/java/org/lightgbm/predict4j/v2/CategoricalDecision.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
public class CategoricalDecision<T extends Comparable<T>> extends Decision<T> {
77
boolean decision(T fval, T threshold) {
8-
if ((int) fval == (int) threshold) {
8+
if (Integer.parseInt(fval.toString()) == Integer.parseInt(threshold.toString())) {
99
return true;
1010
} else {
1111
return false;

0 commit comments

Comments
 (0)