This topic describes the billing methods and provides billing examples for Machine Learning Designer.
Billing description
Using algorithm components in Machine Learning Designer may incur costs for PAI-Algorithm Components, PAI-DLC, or MaxCompute. This topic focuses on the billing of PAI-Algorithm Components. For more information about DLC and MaxCompute billing, see Billing of DLC and Billing of MaxCompute. The pricing information in this topic is for reference only. The actual prices are shown on your bill.
Billable items
Billable item | Billing entity | Billing method | How to stop billing | Billing rule |
CU usage | Component runtime | Pay-as-you-go | Stop the component. | The resources consumed by a running component are converted into billable hours. You are charged for the billable hours on a pay-as-you-go basis. |
Billing methods
When you use algorithm components in Machine Learning Designer, the unit price varies by algorithm type. The billing details are as follows:
Billing formula: Bill amount = Number of billable hours × Unit price
Number of billable hours = max(Number of CPU cores × Duration (h), Memory (GB) × Duration (h) / 4)
Billing duration: The time from when the component starts to when it stops.
Billing example: Assume that you use a data analytics algorithm and consume 2 CPU cores and 5 GB of memory for 1.5 hours. The number of billable hours is calculated as max(2 × 1.5, 5 × 1.5 / 4) = 3. Therefore, the bill amount is calculated as follows: Bill amount = Number of billable hours × Unit price = 3 × 0.21 = USD 0.63. The following table lists the unit prices for each type of algorithm component:
Algorithm type
Unit price (USD per billable hour)
Description
Data pre-processing (data_manipulation)
0.16
Includes data pre-processing and feature engineering components.
Data analytics (data_analysis)
0.21
Includes statistical analysis, machine learning, time series, network analysis, and finance components.
Text analysis (text_analysis)
0.27
Includes text analysis components.
Deep learning algorithms (deep_learning)
0.16
Includes deep learning components such as the CPU version of TensorFlow and EasyRec series algorithms.
NoteIf you activate MaxCompute when you activate PAI, you are charged MaxCompute fees when you use the SQL Script, JOIN, UNION, or Filtering and Mapping components.
If you enable the Flink feature for the PAI product, you are charged Flink fees when you use Alink components and select Flink as the computing resource.
Billing examples
An experiment in Machine Learning Designer consists of multiple algorithm components, and each component is composed of multiple subtasks. To calculate the total fee for an experiment, you must calculate the fee for each subtask within each component and then sum the fees.
Determine the category of the algorithm component.
Log on to the PAI console.
In the upper-left corner, select a region as needed.
In the navigation pane on the left, choose Workspaces, and then click the name of your target workspace.
In the navigation pane on the left, choose Model Development and Training > Machine Learning Designer.
On the Pipelines page, select a pipeline and click Go To Pipeline to open the pipeline page.
In the component list, the PLDA component is in the Natural Language Processing folder. The price of the PLDA component is USD 0.27 per billable hour.
View the resources consumed by the job.
On the pipeline canvas, right-click the PLDA component.
From the shortcut menu, select View Log.
On the Log-PLDA page, each blue link corresponds to a subtask. Click a link.
On the LogView page, click the SourceXML tab.
In the TaskPlan section, view the CPU and Memory values.
The number of CPU cores used is the CPU value divided by 100. In this example, the job uses 1 CPU core.
The memory is measured in MB. In this example, the job uses 1 GB of memory.
On the LogView page, click the Job Details tab.
Click the task object on the AlgoTask_0_0 tab. In the section that appears, click the Terminated tab. The Latency value indicates the runtime of each job.
This subtask has 49 jobs. The runtime of each job is about 26 seconds.
Calculate the fee for the subtask.
Number of billable hours for the subtask = max(Number of CPU cores × Duration (h), Memory (GB) × Duration (h) / 4) = max(49 × 1 × (26 / 3600), 49 × 1 × (26 / 3600) / 4) ≈ 0.35 billable hours
Subtask cost = Number of billable hours × Unit price = 0.35 × 0.27 = USD 0.095
Calculate the fees for all subtasks in the PLDA component and sum them to determine the total fee for the PLDA component.
Repeat the preceding steps to calculate the fees for all components in the experiment. Then, sum the fees to determine the total fee for the experiment.