Skip to content

Commit

Permalink
Release librec-3.0.0-beta version.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyufengkevin committed Jul 15, 2018
1 parent a413f12 commit 9600e4d
Show file tree
Hide file tree
Showing 555 changed files with 3,272,326 additions and 33,160 deletions.
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
*classes/*
*.settings*
*.idea*
*.project
*.classpath
*.umlproject
*.euml*
*bin/log
.idea/
result/*
*/.cache-main
*target/*
*/target/*
*/*.iml
*.iml
core/target/*
spark/target/*
gui/target/*
spark/docs/*
spark/file/*
log/*
out/
.directory

core/src/log/librec\.log

core/src/main/java/net/librec/job/test1\.java

data/ml-10M100K/
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

674 changes: 0 additions & 674 deletions LICENSE

Large diffs are not rendered by default.

132 changes: 0 additions & 132 deletions README.md

This file was deleted.

57 changes: 0 additions & 57 deletions Recruitment.md

This file was deleted.

19 changes: 0 additions & 19 deletions Team.md

This file was deleted.

48 changes: 48 additions & 0 deletions bin/runall.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# -*- coding:utf-8 -*-
#!/usr/bin/env python3

import os
import shutil
import pandas as pd
import subprocess
import re
from concurrent import futures
import pdb
import pprint

def runall(path):
algorithmList=[]
result = pd.DataFrame()
for root, folder, files in os.walk(path):
for file in files:
algorithmList.append(root+"/"+file)
if "log" in os.listdir('.'):
shutil.rmtree("log")
os.mkdir("log")
pprint.pprint(algorithmList)
with futures.ProcessPoolExecutor() as pool:
r = pool.map(runAlgorithm, algorithmList)
print("flag 1")
for res in r:
res = res.splitlines()
name = res[0]
for l in res:
if "Evaluator value:" in l:
eva = l.split("Evaluator value:")[-1]
result.loc[name,eva.split(" ")[0]] = eva.split(" ")[-1]
result.to_excel("result.xls")


def runAlgorithm(dir):
res = subprocess.run(["librec.cmd", "rec", "-exec", "-conf", dir],
stderr=subprocess.PIPE, stdout=subprocess.PIPE)
name = re.split("/|\.", dir)[-2]
with open("./log/"+name,"w") as f:
f.write(res.stderr.decode("gbk"))
print("{0} is complete".format(name))
return name + "\n" + res.stderr.decode("gbk")


if __name__ == '__main__':
runall('../core/src/main/resources/rec/')
pass
2 changes: 2 additions & 0 deletions core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/bin/
/target/
43 changes: 41 additions & 2 deletions core/pom.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>net.librec</groupId>
<artifactId>librec</artifactId>
<version>2.0.0</version>
<version>3.0.0-beta</version>
</parent>

<artifactId>librec-core</artifactId>
<name>librec-core</name>

<packaging>jar</packaging>

<properties>
<jar.commons-logging.version>1.2</jar.commons-logging.version>
</properties>

<dependencies>
<dependency>
<groupId>commons-logging</groupId>
Expand All @@ -31,6 +37,7 @@
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>15.0</version>
<!--<version>15.0</version>-->
</dependency>
<dependency>
<groupId>junit</groupId>
Expand All @@ -41,6 +48,38 @@
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
</dependency>
<dependency>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
<version>1.14.0</version>
</dependency>
<dependency>
<groupId>it.unimi.dsi</groupId>
<artifactId>fastutil</artifactId>
<version>8.2.1</version>
</dependency>

<!-- Core DL4J functionality -->
<dependency>
<groupId>org.deeplearning4j</groupId>
<artifactId>deeplearning4j-core</artifactId>
<version>${dl4j.version}</version>
</dependency>
<dependency>
<groupId>org.deeplearning4j</groupId>
<artifactId>deeplearning4j-nlp</artifactId>
<version>${dl4j.version}</version>
</dependency>
<dependency>
<groupId>org.nd4j</groupId>
<artifactId>nd4j-native-platform</artifactId>
<version>${nd4j.version}</version>
</dependency>
<dependency>
<groupId>net.librec</groupId>
<artifactId>librec-core</artifactId>
<version>3.0.0-beta</version>
</dependency>
</dependencies>
</project>
11 changes: 6 additions & 5 deletions core/src/main/java/net/librec/annotation/ModelData.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/
package net.librec.annotation;

import net.librec.io.NullWritable;

import java.lang.annotation.*;

Expand All @@ -32,9 +33,9 @@
public @interface ModelData {
String[] value();

// Class<?> writable() default NullWritable.class;
//
// Class<?> mapKey() default NullWritable.class;
//
// Class<?> mapVal() default NullWritable.class;
Class<?> writable() default NullWritable.class;

Class<?> mapKey() default NullWritable.class;

Class<?> mapVal() default NullWritable.class;
}
Loading

1 comment on commit 9600e4d

@maldil
Copy link

@maldil maldil commented on 9600e4d Sep 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could anybody summarize the change of this beta release ?

Please sign in to comment.