Skip to content

Commit 6971e58

Browse files
authored
Large update to hundreds of Notebooks, dozens of Notebook additions, adjustments to folder names, updates to copyright (#460)
Large update to hundreds of Notebooks, dozens of Notebook additions, adjustments to folder names, updates to copyright. Adding all Spatial AI notebooks as new OML4Py notebooks.
1 parent 20b693f commit 6971e58

File tree

476 files changed

+28433
-215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

476 files changed

+28433
-215
lines changed

machine-learning/labs/oml4py-live-labs/Lab1_Get_Started_with_OML4Py_on_Autonomous_Database.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

machine-learning/labs/oml4py-live-labs/Lab2_Select_and_manipulate_data_using_the_Transparency_Layer.json

Lines changed: 33 additions & 33 deletions
Large diffs are not rendered by default.

machine-learning/labs/oml4py-live-labs/Lab3_Use_in_database_algorithms_and_models.json

Lines changed: 28 additions & 28 deletions
Large diffs are not rendered by default.

machine-learning/labs/oml4py-live-labs/Lab4_Store_and_manage_Python_objects_and_user_defined_functions.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"commited": true
153153
},
154154
{
155-
"text": "%md\n---\n2.2. Run the following script to create the temporary Diabetes table:",
155+
"text": "%md\n\n2.2. Run the following script to create the temporary Diabetes table:",
156156
"user": "OMLUSER",
157157
"dateUpdated": "2021-09-22T21:30:49+0000",
158158
"config": {
@@ -230,7 +230,7 @@
230230
"commited": true
231231
},
232232
{
233-
"text": "%md\n---\n2.3. Run the following script to create the Boston table:",
233+
"text": "%md\n\n2.3. Run the following script to create the Boston table:",
234234
"user": "OMLUSER",
235235
"dateUpdated": "2021-09-22T21:30:50+0000",
236236
"config": {
@@ -381,7 +381,7 @@
381381
"commited": true
382382
},
383383
{
384-
"text": "%md\n---\n3.2. Save the `DIABETES_TMP` tables into the database.\n\n**Note:** The condition `append\u003dTRUE` adds the object to the datastore, if it already exists. The default is `append\u003dFalse`, and in that case, you will receive an error stating that the datastore exists and it won\u0027t be able to create it again.",
384+
"text": "%md\n\n3.2. Save the `DIABETES_TMP` tables into the database.\n\n**Note:** The condition `append\u003dTRUE` adds the object to the datastore, if it already exists. The default is `append\u003dFalse`, and in that case, you will receive an error stating that the datastore exists and it won\u0027t be able to create it again.",
385385
"user": "OMLUSER",
386386
"dateUpdated": "2021-09-22T21:31:00+0000",
387387
"config": {
@@ -454,7 +454,7 @@
454454
"commited": true
455455
},
456456
{
457-
"text": "%md\n---\n3.3. Save the `IRIS` table to a new datastore, and then list the datastores. Notice that you see the datastore name, the number of objects in the datastore, the size in bytes consumed, when the datastore was create/updated, and any description provided by the user. The two datastores `ds_iris_data` and `ds_pydata` are present, with the latter containing the three objects you added.",
457+
"text": "%md\n\n3.3. Save the `IRIS` table to a new datastore, and then list the datastores. Notice that you see the datastore name, the number of objects in the datastore, the size in bytes consumed, when the datastore was create/updated, and any description provided by the user. The two datastores `ds_iris_data` and `ds_pydata` are present, with the latter containing the three objects you added.",
458458
"user": "OMLUSER",
459459
"dateUpdated": "2021-09-22T21:31:03+0000",
460460
"config": {
@@ -637,7 +637,7 @@
637637
"commited": true
638638
},
639639
{
640-
"text": "%md\n---\n4.2. Run the following script to save the objects `regr1` and `regr2` to the datastore `ds_pymodels`, and allow the read privilege to be granted to them.\n\n**Note:** `overwrite\u003dTrue` indicates that the contents of the datastore should be replaced.",
640+
"text": "%md\n\n4.2. Run the following script to save the objects `regr1` and `regr2` to the datastore `ds_pymodels`, and allow the read privilege to be granted to them.\n\n**Note:** `overwrite\u003dTrue` indicates that the contents of the datastore should be replaced.",
641641
"user": "OMLUSER",
642642
"dateUpdated": "2021-09-22T21:31:08+0000",
643643
"config": {
@@ -747,7 +747,7 @@
747747
"commited": true
748748
},
749749
{
750-
"text": "%md\n---\n4.3. Now grant the read privilege to all users by specifying `user\u003dNone`. Finally, list the datastores to which the read privilege has been granted.",
750+
"text": "%md\n\n4.3. Now grant the read privilege to all users by specifying `user\u003dNone`. Finally, list the datastores to which the read privilege has been granted.",
751751
"user": "OMLUSER",
752752
"dateUpdated": "2021-09-22T21:31:09+0000",
753753
"config": {
@@ -903,7 +903,7 @@
903903
"commited": true
904904
},
905905
{
906-
"text": "%md\n---\n5.2. Run the following script to load the named Python object `regr2` (regression model), from the datastore to the global workspace.\n\n**Note:** Using the boolean `to_globals` parameter, you can specify whether the objects are loaded to a global workspace or to a dictionary object. If the argument is `to_globals\u003dTrue`, then `oml.ds.load` function loads the objects into the global workspace. If the argument is `to_globals\u003dFalse`, then the function returns a dict object that contains pairs of object names and values.",
906+
"text": "%md\n\n5.2. Run the following script to load the named Python object `regr2` (regression model), from the datastore to the global workspace.\n\n**Note:** Using the boolean `to_globals` parameter, you can specify whether the objects are loaded to a global workspace or to a dictionary object. If the argument is `to_globals\u003dTrue`, then `oml.ds.load` function loads the objects into the global workspace. If the argument is `to_globals\u003dFalse`, then the function returns a dict object that contains pairs of object names and values.",
907907
"user": "OMLUSER",
908908
"dateUpdated": "2021-09-22T21:31:22+0000",
909909
"config": {
@@ -981,7 +981,7 @@
981981
"commited": true
982982
},
983983
{
984-
"text": "%md\n---\n5.3. Run the following script to view the model details",
984+
"text": "%md\n\n5.3. Run the following script to view the model details",
985985
"user": "OMLUSER",
986986
"dateUpdated": "2021-09-22T21:31:29+0000",
987987
"config": {
@@ -1059,7 +1059,7 @@
10591059
"commited": true
10601060
},
10611061
{
1062-
"text": "%md\n---\n5.4. Run the following script to load the named Python object `regr1`, from the datastore to the user\u0027s workspace.\n\n**Note:** Using the boolean `to_globals` parameter, you can specify whether the objects are loaded to a global workspace or to a dictionary object. If the argument is `to_globals\u003dTrue`, then `oml.ds.load` function loads the objects into the global workspace. If the argument is `to_globals\u003dFalse`, then the function returns a dict object that contains pairs of object names and values.",
1062+
"text": "%md\n\n5.4. Run the following script to load the named Python object `regr1`, from the datastore to the user\u0027s workspace.\n\n**Note:** Using the boolean `to_globals` parameter, you can specify whether the objects are loaded to a global workspace or to a dictionary object. If the argument is `to_globals\u003dTrue`, then `oml.ds.load` function loads the objects into the global workspace. If the argument is `to_globals\u003dFalse`, then the function returns a dict object that contains pairs of object names and values.",
10631063
"user": "OMLUSER",
10641064
"dateUpdated": "2021-09-22T21:31:30+0000",
10651065
"config": {
@@ -1245,7 +1245,7 @@
12451245
"commited": true
12461246
},
12471247
{
1248-
"text": "%md\n---\n6.2. Run the following script to list the datastores to which other users have been granted the read privilege:",
1248+
"text": "%md\n\n6.2. Run the following script to list the datastores to which other users have been granted the read privilege:",
12491249
"user": "OMLUSER",
12501250
"dateUpdated": "2021-09-22T21:31:38+0000",
12511251
"config": {
@@ -1512,7 +1512,7 @@
15121512
"commited": true
15131513
},
15141514
{
1515-
"text": "%md\n---\n8.2. Run the following script to grant read privilege to `OMLUSER2`.\n\nNote: If you are running this Notebook on your own tenancy, make sure to follow the instructions on creationg a new OMLUSER2, otherwise you will get an error. ",
1515+
"text": "%md\n\n8.2. Run the following script to grant read privilege to `OMLUSER2`.\n\nNote: If you are running this Notebook on your own tenancy, make sure to follow the instructions on creationg a new OMLUSER2, otherwise you will get an error. ",
15161516
"user": "OMLUSER",
15171517
"dateUpdated": "2021-09-22T21:31:46+0000",
15181518
"config": {
@@ -1772,7 +1772,7 @@
17721772
"commited": true
17731773
},
17741774
{
1775-
"text": "%md\n---\n10.2. Run the following script to view the string that you just created:",
1775+
"text": "%md\n\n10.2. Run the following script to view the string that you just created:",
17761776
"user": "OMLUSER",
17771777
"dateUpdated": "2021-09-22T21:31:55+0000",
17781778
"config": {
@@ -1921,7 +1921,7 @@
19211921
"commited": true
19221922
},
19231923
{
1924-
"text": "%md\n---\n11.2. Run the `oml.script.dir` script to list the scripts to which the read privilege has been granted, and where `sctype` is set to `grant`.",
1924+
"text": "%md\n\n11.2. Run the `oml.script.dir` script to list the scripts to which the read privilege has been granted, and where `sctype` is set to `grant`.",
19251925
"user": "OMLUSER",
19261926
"dateUpdated": "2021-09-22T21:31:57+0000",
19271927
"config": {
@@ -1998,7 +1998,7 @@
19981998
"commited": true
19991999
},
20002000
{
2001-
"text": "%md\n---\n11.3. Run the following script to load the named function `MyLM_function` into the Python engine for use as a typical Python function using `oml.script.load`.",
2001+
"text": "%md\n\n11.3. Run the following script to load the named function `MyLM_function` into the Python engine for use as a typical Python function using `oml.script.load`.",
20022002
"user": "OMLUSER",
20032003
"dateUpdated": "2021-09-22T21:31:59+0000",
20042004
"config": {
@@ -2075,7 +2075,7 @@
20752075
"commited": true
20762076
},
20772077
{
2078-
"text": "%md\n---\n11.4. Extract the function text string from the function object and use this to save in the script repository using `oml.script_create`.",
2078+
"text": "%md\n\n11.4. Extract the function text string from the function object and use this to save in the script repository using `oml.script_create`.",
20792079
"user": "OMLUSER",
20802080
"dateUpdated": "2021-09-22T21:32:00+0000",
20812081
"config": {
@@ -2152,7 +2152,7 @@
21522152
"commited": true
21532153
},
21542154
{
2155-
"text": "%md\n---\n11.5. Run the script `oml.script.create` to create a test function `MyTEST_function`:",
2155+
"text": "%md\n\n11.5. Run the script `oml.script.create` to create a test function `MyTEST_function`:",
21562156
"user": "OMLUSER",
21572157
"dateUpdated": "2021-09-22T21:32:01+0000",
21582158
"config": {
@@ -2224,7 +2224,7 @@
22242224
"commited": true
22252225
},
22262226
{
2227-
"text": "%md\n---\n11.6. Use `oml.script.dir` to list all the available scripts.",
2227+
"text": "%md\n\n11.6. Use `oml.script.dir` to list all the available scripts.",
22282228
"user": "OMLUSER",
22292229
"dateUpdated": "2021-09-22T21:32:02+0000",
22302230
"config": {
@@ -2333,7 +2333,7 @@
23332333
"commited": true
23342334
},
23352335
{
2336-
"text": "%md\n---\n11.7. Call the `table_apply` on `build_lm_str` and `loaded_str` functions. Note that these strings represent the same function `build_lm_str` that was saved to the script repository after assigning the function to a string object. The `loaded_str` is the string representation of the function extracted using `get_source().read()`.",
2336+
"text": "%md\n\n11.7. Call the `table_apply` on `build_lm_str` and `loaded_str` functions. Note that these strings represent the same function `build_lm_str` that was saved to the script repository after assigning the function to a string object. The `loaded_str` is the string representation of the function extracted using `get_source().read()`.",
23372337
"user": "OMLUSER",
23382338
"dateUpdated": "2021-09-22T21:32:04+0000",
23392339
"config": {
@@ -2410,7 +2410,7 @@
24102410
"commited": true
24112411
},
24122412
{
2413-
"text": "%md\n---\nRun the same function on `loaded_str`:",
2413+
"text": "%md\n\nRun the same function on `loaded_str`:",
24142414
"user": "OMLUSER",
24152415
"dateUpdated": "2021-09-22T21:32:05+0000",
24162416
"config": {
@@ -2559,7 +2559,7 @@
25592559
"commited": true
25602560
},
25612561
{
2562-
"text": "%md\n---\n12.2. Call the function `build_lm3` to build the model or model `MyGlobalML_function`:",
2562+
"text": "%md\n\n12.2. Call the function `build_lm3` to build the model or model `MyGlobalML_function`:",
25632563
"user": "OMLUSER",
25642564
"dateUpdated": "2021-09-22T21:32:07+0000",
25652565
"config": {

0 commit comments

Comments
 (0)