This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.sysml.api.DMLException; | |
import org.apache.sysml.api.jmlc.Connection; | |
import org.apache.sysml.api.jmlc.PreparedScript; | |
public class Main { | |
public Main() throws DMLException { | |
} | |
public static void main(String args[]) throws DMLException { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ml = MLContext(spark) | |
matrixScript = dml( | |
""" | |
fileM = 'test_csv.csv' | |
numRowsToPrint = ifdef($rowsToPrint, 2) # default to 2 | |
numColsToPrint = ifdef($colsToPrint, 2) # default to 2 | |
m = read(fileM) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fileM = $M #read the file given by M | |
numRowsToPrint = ifdef($rowsToPrint, 2) # default to 2 | |
numColsToPrint = ifdef($colsToPrint, 2) # default to 2 | |
m = read(fileM) | |
for (i in 1:numRowsToPrint) { | |
for (j in 1:numColsToPrint) { | |
print('[' + i + ',' + j + ']:' + as.scalar(m[i,j])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# # Object Detection Demo | |
# Welcome to the object detection inference walkthrough! This notebook will walk you step by step through the process of using a pre-trained model to detect objects in an image. Make sure to follow the [installation instructions](https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md) before you start. | |
# # Imports | |
# In[1]: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk:8-jdk | |
CMD ["gradle"] | |
ENV GRADLE_HOME /opt/gradle | |
ENV ANDROID_HOME /opt/android | |
ENV GRADLE_VERSION 4.2.1 | |
ARG GRADLE_DOWNLOAD_SHA256=b551cc04f2ca51c78dd14edb060621f0e5439bdfafa6fd167032a09ac708fbc0 |