Repository: incubator-systemml
Updated Branches:
  refs/heads/gh-pages f48c6a800 -> c08740043


[SYSTEMML-889] Remove MLContext Java input output methods

This removes the `Script.input` and `Script.output` methods on the JVM
side, and hacks the Python side so that it is able to call the
`Script.in` method on the JVM side.  This means that a Scala/Java user
would use the clean `in(...)` and `out(...)` syntax, while a Python
user would use the `input(...)` and `output(...)` syntax.

Closes #229.


Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/c0874004
Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/c0874004
Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/c0874004

Branch: refs/heads/gh-pages
Commit: c0874004323e613623c8ce338d0a5c40d366fd83
Parents: f48c6a8
Author: Mike Dusenberry <[email protected]>
Authored: Thu Sep 1 10:13:03 2016 -0700
Committer: Mike Dusenberry <[email protected]>
Committed: Thu Sep 1 10:13:03 2016 -0700

----------------------------------------------------------------------
 beginners-guide-python.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/c0874004/beginners-guide-python.md
----------------------------------------------------------------------
diff --git a/beginners-guide-python.md b/beginners-guide-python.md
index b565656..3b4aeed 100644
--- a/beginners-guide-python.md
+++ b/beginners-guide-python.md
@@ -328,6 +328,6 @@ X_df = sqlCtx.createDataFrame(pd.DataFrame(X_digits[:.9 * 
n_samples]))
 y_df = sqlCtx.createDataFrame(pd.DataFrame(y_digits[:.9 * n_samples]))
 ml = sml.MLContext(sc)
 script = os.path.join(os.environ['SYSTEMML_HOME'], 'scripts', 'algorithms', 
'MultiLogReg.dml')
-script = sml.dml(script).input(X=X_df, Y_vec=y_df).input(**{"$X": ' ', "$Y": ' 
', "$B": ' '}).out("B_out")
+script = sml.dml(script).input(X=X_df, Y_vec=y_df).output("B_out")
 beta = ml.execute(script).getNumPyArray('B_out')
 ```

Reply via email to