Jump to content

patjdixon

Super Seeqer
  • Posts

    94
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by patjdixon

  1. I am getting kernel crashes in a DataLab cell in which a loop is appending worksheets from a template.  If the loop is a small number of iterations no crash occurs.  If the loop a specific number of iterations, the kernel dies.  It looks like the kernel is running out of memory when the crash occurs.  Is there a way to allocate more memory, or do so programmatically? Are there diagnostics that would expose the problem?

  2. Mark YUDAMAN!!! That fixed it.  What I really don't understand is the original code did not set UIConfig, it only set a formula.  It looks like something gets stuck anytime you write to UIConfig for any item that carries over to all items?  I don't get it, but this fixes the problem and I can get this working.  This took a couple of weeks for me to figure out.

  3. For UIConfig alone:

       {
          "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/UIConfig",
          "name": "UIConfig",
          "value": "{\"type\":\"prediction\",\"option\":\"linear\",\"polynomialValue\":2,\"mustGoThroughZero\":FALSE,\"variableSelectionEnabled\":FALSE,\"variableSelection\":0.05,\"windowStart\":1609365600000,\"windowEnd\":1616306430000,\"regressionMethod\":\"OLS\"}",
          "unitOfMeasure": "string"
        },

  4. { "id": "0EE6557D-882B-F970-9854-502353F5A143", "name": "NewTest_PRED", "type": "CalculatedSignal", "description": "Prediction tag", "effectivePermissions": { "read": true, "write": true, "manage": true }, "properties": [ { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/Archived", "name": "Archived", "value": "false" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/Cache+Enabled", "name": "Cache Enabled", "value": "true" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/Cache+ID", "name": "Cache ID", "value": "0ee66176-8ce5-ee20-b559-9dcc6c36eb73", "unitOfMeasure": "string" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/Data+ID", "name": "Data ID", "value": "[0EE473B9-95A2-FB50-9DE6-29EBF1F67009] {Signal} NewTest_PRED", "unitOfMeasure": "string" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/Datasource+Class", "name": "Datasource Class", "value": "Seeq Data Lab", "unitOfMeasure": "string" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/Datasource+ID", "name": "Datasource ID", "value": "Seeq Data Lab", "unitOfMeasure": "string" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/Datasource+Name", "name": "Datasource Name", "value": "Seeq Data Lab", "unitOfMeasure": "string" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/Description", "name": "Description", "value": "Prediction tag", "unitOfMeasure": "string" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/Enabled", "name": "Enabled", "value": "true" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/Formula", "name": "Formula", "value": "$target.regressionModelOLS(group(capsule(\"2021-01-03T02:12:48.021Z\",\"2021-03-04T22:12:48.021Z\")), true,$a, $a^2).variableSelection(0.05).predict($a, $a^2)", "unitOfMeasure": "string" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/ID", "name": "ID", "value": "0EE6557D-882B-F970-9854-502353F5A143", "unitOfMeasure": "string" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/Interpolation+Method", "name": "Interpolation Method", "value": "Linear", "unitOfMeasure": "string" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/Key+Unit+Of+Measure", "name": "Key Unit Of Measure", "value": "ns", "unitOfMeasure": "string" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/Maximum+Interpolation", "name": "Maximum Interpolation", "value": "40", "unitOfMeasure": "h" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/Scoped+To", "name": "Scoped To", "value": "0EE473B9-95A2-FB50-9DE6-29EBF1F67009", "unitOfMeasure": "string" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/Sync+Token", "name": "Sync Token", "value": "2023-10-08T20:16:06.907564", "unitOfMeasure": "string" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/UIConfig", "name": "UIConfig", "value": "{\"type\":\"prediction\",\"option\":\"linear\",\"polynomialValue\":2,\"mustGoThroughZero\":FALSE,\"variableSelectionEnabled\":FALSE,\"variableSelection\":0.05,\"windowStart\":1609365600000,\"windowEnd\":1616306430000,\"regressionMethod\":\"OLS\"}", "unitOfMeasure": "string" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/Unsearchable", "name": "Unsearchable", "value": "false" }, { "href": "/items/0EE6557D-882B-F970-9854-502353F5A143/properties/Value+Unit+Of+Measure", "name": "Value Unit Of Measure", "value": "", "unitOfMeasure": "string" } ], "cached": true, "scopedTo": "0EE473B9-95A2-FB50-9DE6-29EBF1F67009", "datasource": { "id": "1E25E639-5FFF-450A-BEC7-C91ED0080D01", "name": "Seeq Data Lab", "type": "Datasource", "datasourceClass": "Seeq Data Lab", "datasourceId": "Seeq Data Lab", "isArchived": false, "isRedacted": false }, "fingerprint": "0e798e88-9fdd-4e48-acd1-5bc073641a55", "isArchived": false, "isRedacted": false }

  5. I have a DataLab script that creates a regression formula and pushes the item.  The problem is that when I see the item in Workbench, it has no user interface (there is no edit capability, no UIConfig).  When I try to open the item properties, the worksheet seems to crash and reverts to the home folder.  I am sure I used to have this working about a month ago, but now I can't get it to work.

    For an example, the item "Prediction 1" that was created in the Workbench user interface (Tools, Model & Predict, Prediction), shows what a regression formula should look like:

    image.thumb.jpeg.4676643d5dcc345b87bbdde370be4059.jpeg

    If I create a formula to remove data, the code below:

    image.thumb.jpeg.88da95d287797d89a2e778e228664ac9.jpeg

     

    produces the desired results, an item (TestRunning_pred) in WorkBench that I can edit.  However, the code below to use a regression formula:

    image.thumb.jpeg.070f238a8f8bff42b4d527e47ccf78ad.jpeg

    produces an item (NewTest_PRED) that I can add to a worksheet but I cannot edit and if I select the item properties the worksheet disappears, as if it crashes:

    image.thumb.jpeg.dfecd70869ae068208bd66dc14898508.jpeg

    I don't see any difference between the formula created from the Tools (Prediction 1) and the item I create in DataLab (NewTest_PRED).  I also don't see any difference in the way I create the metadata between "TestRunning_Pred" and "NewTest_PRED".  However, it looks like a regression formula does not work when pushed from DataLab.

    I am on R61.1.3-v202307120420

    Any ideas to fix this?

  6. I am pushing 8 worksheets to a workbook and it is taking nearly 3 hours.  I notice the count is 321.  Is that what it thinks the number of worksheets is, or is it items, or something else? Regardless, this is a much higher number than I think it should be, which might explain why it is taking so long.

     

    image.thumb.jpeg.6be37701d2ce94cbf583c1bb678ef000.jpeg

  7. I notice the UIConfig does not show the advanced setting "Limit to condition within training window".  In the user interface you can select a condition for limiting the training window.  This is different from the hard coded training window dates.

    image.thumb.jpeg.dd8d42ea43f0f089b845dd5f3363c3ea.jpeg

    If I look for this parameter in UIConfig it does now show up.  

    image.jpeg.8453435d0e2a913eeedbd90329fcd1ea.jpeg

    The WindowStart and WindowEnd are the hard coded dates for Training Window, not related to the condition configured for "Limit to condition ..."

    image.thumb.jpeg.b7a487bfcf44ec6f064558937c267d83.jpeg

    The limit to condition does not appear in the formula parameter either:

    image.thumb.jpeg.0c0d03213c1005cf58b7a53a7c75e064.jpeg

    Is there any way to access this parameter from DataLab?

     

     

    image.jpeg

  8. This is very helpful.  I found that you can convert a formula to a tool interface this way.  In my case I had prediction models built in DataLab using formulas, but formulas do not show model coefficients.  This technique allows me to specify UIConfig as:

    {"value": "{\"type\":\"prediction\"}”}

    This converts the formula to a tool interface

    It should be noted that if you do a "Get" on the property UIConfig for an item created in DataLab, it won't find UIConfig:

    image.thumb.jpeg.606f02f8e244a12906e8bdeb26c63f4b.jpeg

    However, you can still use the API to create UIConfig and it works.  When using:

    {"value": "{\"type\":\"prediction\"}”}

    it produces to Tool user interface:

    image.thumb.jpeg.4b4906bfc1653c6be50afe8c9675059e.jpeg

    When using:

    {"value": "{\"type\":\"formula\"}”}

    it produces:

    image.thumb.jpeg.ceb3713f88d1154e6d62b2fe8356a6ca.jpeg

    image.jpeg

  9. This is not what I want.  I am not looking for a manual process or a script that inserts whole worksheets into an Organizer document.  I want a programmatic way to insert objects in a Worksheet (trend, XY plot, table, or other item) into an Organizer document

    I would like to have a DataLab script that can take a trend, XY plot, table, or other item in a Workbench worksheet and insert the linked object in an Organizer page. 

    I presume this is impossible?

×
×
  • Create New...