GithubHelp home page GithubHelp logo

anu69 / test-systemds Goto Github PK

View Code? Open in Web Editor NEW

This project forked from j143/test-systemds

0.0 0.0 0.0 12 KB

Repository for using Apache SystemDS in a maven project

Home Page: https://j143.github.io/test-systemds/

Java 100.00%

test-systemds's Introduction

test-systemds

1. Creating an empty maven project

mvn -B archetype:generate   \
  -DarchetypeGroupId=org.apache.maven.archetypes   \
  -DgroupId=page.janardhan.labs   \
  -DartifactId=test-systemds

2. Add SystemDS to pom.xml

Then add

<!-- 
    maven.apache.org/guides/mini/guide-multiple-repositories.html -->
  <repositories>
    <repository>
      <id>nexus-staging</id>
      <name>Nexus OSS Staging repo</name>
      <url>https://repository.apache.org/content/groups/staging/</url>
    </repository>
  </repositories>
  
  <dependencies>
    
    <dependency>
      <groupId>org.apache.systemds</groupId>
      <artifactId>systemds</artifactId>
      <version>2.1.0</version>
   </dependency>
  </dependencies>

3. Building the project

Run

mvn clean package

4. Usage

Call SystemDS functions like this

// Importing Apache SystemDS library
import static org.apache.sysds.api.mlcontext.ScriptFactory.dmlFromUrl;
import org.apache.sysds.api.mlcontext.Script;

public class App 
{
    public static void main( String[] args )
    {
        
        String urlString = "https://raw.githubusercontent.com/apache/systemml/master/src/test/scripts/applications/hits/HITS.dml";
        Script script = dmlFromUrl(urlString);
        String s = script.getScriptString();
        System.out.println(s);
    }
}

Apache, Apache SystemDS are the trademarks of The Apache Software Foundation.

test-systemds's People

Contributors

j143 avatar anu69 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.