Algorithm component FAQ

Updated at:

Find answers to common questions about Designer algorithm components, including data type limits, component error troubleshooting, permission configuration, and script usage.

Which MaxCompute data types can Designer algorithms use

Designer currently supports only five data types: Boolean, Bigint, Double, String, and Datetime.

"Compute Resource Not Exists, Type: MaxCompute" is displayed when I use a component

This message appears because the workspace isn't associated with a MaxCompute resource. To fix the issue, associate a MaxCompute resource with the workspace. For details, see Manage workspace - Computing resource configuration.

Beta component usage notes

Beta components in Designer, such as Approximate Text Similarity Pair and Multi-Hot Encoding Training, are customized for specific users and aren't intended for general use. If you need the same capability, use a comparable component instead, or submit a ticket to ask about your requirement.

image

x13_auto_arima component error

  • Error message

    row number should be (1, 1200].

  • Solution

x13_auto_arima supports a maximum of 1,200 rows per group. If the data isn't grouped, the total row count must not exceed 1,200.

Doc2Vec component error: CallExecutorToParseTaskFail

The data scale of the Doc2Vec component (number of docs + number of words) × vector length must be less than 2410000×10000 and the user scale must be less than 42432500×7712293×300. Exceeding these limits causes memory allocation to fail.

Reduce the data size before you run the component. The input data must also be tokenized.

How do I persist the temporary table data output by a canvas node?

In PAI-Studio/Designer, add the Write table component downstream of the node whose temporary table data you want to persist.

Component error: no MaxCompute operation permissions

In the workspace, check whether the RAM user has been assigned the MaxCompute Developer role. For details, see Manage members. image

Expected data column is missing from the component column selector

If the expected data column doesn't appear when you select fields in the column selector, first verify that the upstream node ran successfully and generated the input data table that the current node requires. To do so, right-click the component on the upstream node and choose Stop Here from the menu.

Workflow run fails with the error "you are not in the MaxCompute project"

On the Workspace Details page, go to the Workspace Member section and assign the MaxCompute Developer role to the RAM user. For details, see Manage members.

How do I troubleshoot a failed algorithm component?

  1. On the Designer canvas, right-click the failed component and choose View Logs from the shortcut menu.

  2. On the Logs page, find and click the Logview link.image

  3. On the Job Details tab, click image in the StdErr column.image

  4. In the StdErr dialog box, find the log entry that describes the error.

How can Designer use data from self-managed Hive tables on Alibaba Cloud?

Designer doesn't have a component that reads Hive tables directly. We recommend synchronizing Hive data to MaxCompute with DataWorks Data Integration, and then accessing the MaxCompute table in Designer.

PyAlink script component vs. Python script component

  1. The PyAlink script component runs on an Alink image and can call the Alink SDK directly. It supports execution on different compute resources, such as MaxCompute, DLC, and fully managed Flink.

  2. The Python script component runs entirely on DLC and supports custom scripts, custom images, and custom third-party dependency packages.

How do I run my own algorithm code in PAI Designer?

Use the Python script component in Designer. Paste your code into the component's Python code editor and run it. For details, see Python script.

How do I install third-party libraries for a custom Python component?

Custom Python components support third-party dependencies in their script settings. Enter dependencies in the configuration box in requirements format, and make sure there are no spaces on either side of == in a version specifier. For parameter configuration of custom Python components, see Python script. For the full format specification, see the requirements file format.

Python component can't connect to MaxCompute

Don't obtain the endpoint in mc_execution. Refer to the PyODPS documentation instead.

Can a model built in Designer be called in MaxCompute to read newly uploaded data?

  1. In Machine Learning Designer, connect a prediction component and use the trained model and the MaxCompute table to be predicted as inputs. After you configure the component, run it to start offline batch prediction.

  2. Some algorithms have a dedicated prediction component. For example, EasyRec training corresponds to EasyRec prediction. Other algorithms use the generic prediction component. For details, see generic prediction component.

Expected field is missing from the Designer component column selector

If the expected data column doesn't appear when you select fields in the column selector, first verify that the upstream node ran successfully and generated the input data table that the current node requires. To do so, right-click the component on the upstream node and choose Execute to Here from the menu.

The column selector resolves fields in the following order:

  1. If the table produced by the direct upstream node hasn't been modified, the fields of that table are listed.

  2. If the preceding node has been modified and the first node on the canvas is Read Table, the fields of the input table of the first node are listed.

Python component error: No module named imblearn

The default image doesn't include the imblearn library. Add imblearn to the third-party dependency libraries on the script settings tab of the component. The library is installed automatically before the node runs. For details, see the script component documentation.

Random Forest: the final node shows progress at 100% but doesn't finish

ID-type features in the model can make the model very large and exceed the system limit. To fix the issue, remove some discrete features or reduce the tree depth to lower model complexity.

Random Forest error: Algo Job Failed-Algo Error-unsupported type

Random Forest currently supports only five data types: Boolean, Bigint, Double, String, and Datetime. This applies to retained columns as well. The error occurs because the data contains an unsupported data type. Convert the data to a supported type before you run the computation.

How do I provide input to the DBSCAN component?

DBSCAN requires input in KV format, so convert your data to KV format first. For example, if a record has three features with values 0.1, 0.2, and 0.3, rewrite it as 0:0.1 1:0.2 2:0.3. You can use the Table2KV component in Designer to convert the data, and then feed the output directly to DBSCAN.

Natural language processing component error: Restoring from checkpoint failed

The saved checkpoint file conflicts with the model structure in the current code. Delete the checkpoint file and run the component again.

Component error: Parse exception - invalid token

Designer currently supports only five data types: Boolean, Bigint, Double, String, and Datetime. The error occurs because the data contains an unsupported data type. Convert the data to a supported type, or filter out the unsupported fields, before you run the computation.

How do I use PAI commands?

  1. Write PAI commands directly in an SQL node in Designer. For details, see the PAI command documentation.

  2. Use PAI commands in an SQL node in DataWorks Data Studio. For details, see the DataWorks SQL node documentation.

  3. Download and use the ODPSCMD client. For details, see the ODPSCMD documentation.

Designer generates a large number of temporary tables during a run

Temporary tables have a lifecycle and are automatically deleted when the lifecycle expires. The default lifecycle is 28 days. To change the lifecycle or manually delete temporary tables in the workspace, click Temporary Table Cleanup in the upper-right corner of the Designer page.

image

Custom Python script error: exit_code=255

Configure different OSS paths for the task output path and the code storage path. Using the same path can cause conflicts.

Training error: ODPS-1202005: Algo Job Failed-User Error-The script file is not provided

This error usually occurs when the -Dscript parameter is missing or the storage type doesn't support an executable code file. Store the code file in OSS and set its path in the -Dscript parameter.

Why does the percentile component involve both training and prediction?

The model produced by training is the set of percentile points. Prediction determines which percentile interval a value falls into.

Limit on the number of records in Designer node data preview

  1. After a component runs, the complete data is stored in a MaxCompute table, but the preview is limited in the number of records. To query the data you need, connect an SQL Script component.

  2. You can also query or download the node output table data in MaxCompute or DataWorks (downloading requires the corresponding permissions). To find the project and table of the node output table, right-click and choose View Log. Look for the output table information (such as project and table) in the log, as shown in the following example. Then run an SQL query in DataWorks to view the results.

Why does reading a CSV file return only 100 records?

Data reading isn't limited; the preview shows only the first 100 records. To preview the records you need, connect an SQL Script component and run a select statement. For more information about the SQL Script component, see SQL script.

How do I perform upsampling?

  1. Use the StratifiedSample component. For details, see Stratified Sample.

  2. Use a custom Python component. For details, see Use case 1 in the script component documentation.

Can the doc2vec component predict new vectors?

The doc2vec component can't predict new vectors. Use word2vec followed by docvecFromWordVec in PyAlink instead. For details, see the PyAlink documentation.

How do I pass the output of one node in a PAI algorithm flow to another node as input?

In PAI Designer (formerly Studio), node result data is stored in a MaxCompute table or an OSS path, depending on the algorithm type. Connect the downstream node to the corresponding MaxCompute table or OSS path to read the data and continue the computation.

Machine learning error: FAILED: ODPS-1220061: Invalid parameter in HTTP request - xflow not found

If you use a PAI command to call an algorithm, set the project parameter to algo_public.

How is GPU usage for algorithm components billed?

  • Designer algorithm components, including deep learning components such as image detection training, are billed by CU usage. Charges are based on the compute resources actually consumed, converted to compute-hours. Components aren't billed separately by the GPU instance type you select. The GPU instance types available in the console only determine the compute resource specifications that tasks are scheduled to use.

  • Resources are allocated on demand and elastically. You don't need to purchase or reserve GPU resources in advance. When a task finishes or you stop it manually, the instance is released automatically and billing stops.

What do I do if a component run reports an AKNotBinded error?

Use one of the following solutions:

  • Log on to the PAI console with your Alibaba Cloud account. Go to Activate and Authorize > All Cloud Product Dependencies and grant one-click authorization to dependency modules such as DLC.

  • In the RAM console, verify that the AliyunPAIDLCDefaultRole role exists and has the required permissions, such as AliyunOSSFullAccess.

  • Verify that the current RAM user has been added to the workspace with the algorithm development role. For workspace permission management, see Configure a workspace.