Baunsgaard commented on a change in pull request #874: Add SystemDSContext for 
systemds operations
URL: https://github.com/apache/systemml/pull/874#discussion_r403497486
 
 

 ##########
 File path: src/main/python/docs/source/simple_examples.rst
 ##########
 @@ -62,36 +72,43 @@ Remember to first start up a new terminal::
   m2 = np.array(np.random.randint(5, size=5 * 5) + 1, dtype=np.double)
   m2.shape = (5, 5)
 
-  # element-wise matrix multiplication, note that nothing is executed yet!
-  m_res = Matrix(m1) * Matrix(m2)
-  # lets do the actual computation in SystemDS! We get an numpy array as a 
result
-  m_res_np = m_res.compute()
-  print(m_res_np)
+  # Create a context
+  with SystemDSContext() as sds:
+      # element-wise matrix multiplication, note that nothing is executed yet!
+      m_res = sds.matrix(m1) * sds.matrix(m2)
+      # lets do the actual computation in SystemDS! We get an numpy array as a 
result
+      m_res_np = m_res.compute()
+      print(m_res_np)
 
 More complex operations
 -----------------------
 
-SystemDS provides algorithm level functions as buildin functions to simplify 
development.
-One example of this is l2SVM.
-high level functions for Data-Scientists, lets take a look at l2svm::
+SystemDS provides algorithm level functions as built-in functions to simplify 
development.
+, e example of this is l2SVM, a high level functions for Data-Scientists. 
Let's take a look at l2svm:
 
 Review comment:
   typo

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to