TW202636282A - Data processing methods and systems - Google Patents
Data processing methods and systemsInfo
- Publication number
- TW202636282A TW202636282A TW114106078A TW114106078A TW202636282A TW 202636282 A TW202636282 A TW 202636282A TW 114106078 A TW114106078 A TW 114106078A TW 114106078 A TW114106078 A TW 114106078A TW 202636282 A TW202636282 A TW 202636282A
- Authority
- TW
- Taiwan
- Prior art keywords
- data
- data table
- imported
- data processing
- module
- Prior art date
Links
Abstract
一種資料處理系統,包含一儲存模組、一資料轉換模組及一資料運算模組。該資料轉換模組用來根據一資料導入指令,自一待導入資料源獲取一待導入資料表,並將該待導入資料表轉換成符合一預定輸入格式的一轉換後資料表。該資料運算模組用來接收該轉換後資料表,並將該轉換後資料表儲存至該儲存模組;及根據一資料運算指令執行一運算任務以獲得一運算結果,並將該運算結果及執行該運算任務過程中產生的所有記錄檔儲存至該儲存模組。A data processing system includes a storage module, a data conversion module, and a data processing module. The data conversion module is used to obtain a data table to be imported from a data source according to a data import instruction, and convert the data table into a converted data table conforming to a predetermined input format. The data processing module is used to receive the converted data table, store the converted data table in the storage module, and execute a calculation task according to a data processing instruction to obtain a calculation result, and store the calculation result and all record files generated during the execution of the calculation task in the storage module.
Description
本發明是有關於一種處理方法及系統,特別是指一種資料處理方法及系統。This invention relates to a processing method and system, and in particular to a data processing method and system.
基於聯邦學習(Federated Learning)的模型在建立時需要使用由不同參與方提供的資料,待這些資料經預處理以符合模型所適用的特定資料格式後才會被用於模型的訓練。而各參與方在處理資料時往往都採用各自建立的流程,不僅缺乏一致性,亦造成管理上的不便。Federated learning models require data from different stakeholders during their creation. This data is preprocessed to conform to the specific data format applicable to the model before it is used for training. However, each stakeholder often uses its own established processes to process the data, which not only lacks consistency but also causes management inconvenience.
因此,如何在進行聯邦學習時統一各參與方所進行的流程,已成為相關技術領域所欲解決的議題之一。Therefore, how to standardize the processes followed by all participants during federal learning has become one of the issues that the relevant technical fields want to address.
因此,本發明之目的,即在提供一種資料處理方法及系統,其能克服現有技術至少一個缺點。Therefore, the purpose of this invention is to provide a data processing method and system that overcomes at least one shortcoming of the prior art.
於是,本發明所提供的一種資料處理系統,包含一儲存模組、一資料轉換模組及一連接該資料轉換模組及該儲存模組的資料運算模組。Therefore, the present invention provides a data processing system comprising a storage module, a data conversion module, and a data processing module connecting the data conversion module and the storage module.
該資料轉換模組用來根據一資料導入指令,自一待導入資料源獲取一待導入資料表。該資料導入指令包括一指示出該待導入資料源的資料源設定、一指示出該待導入資料表的目標資料表設定及一用於獲取該待導入資料表的執行緒數量設定。將該待導入資料表轉換成符合一預定輸入格式的一轉換後資料表。This data conversion module is used to obtain a data table to be imported from a data source according to a data import command. The data import command includes a data source setting indicating the data source to be imported, a target data table setting indicating the data table to be imported, and a thread count setting for obtaining the data table to be imported. The data table to be imported is converted into a converted data table that conforms to a predetermined input format.
該資料運算模組用來接收該轉換後資料表,並將該轉換後資料表儲存至該儲存模組。根據一資料運算指令執行一運算任務以獲得一運算結果,並將該運算結果及執行該運算任務過程中產生的所有記錄檔儲存至該儲存模組。The data processing module receives the converted data table and stores it in the storage module. It executes a calculation task according to a data processing instruction to obtain a calculation result, and stores the calculation result and all record files generated during the execution of the calculation task in the storage module.
於是,本發明所提供的一種資料處理方法,利用一運算裝置來執行,並包含以下步驟:Therefore, the data processing method provided by this invention is executed using a computing device and includes the following steps:
(A)根據一資料導入指令,自一待導入資料源獲取一待導入資料表。該資料導入指令包括一指示出該待導入資料源的資料源設定、一指示出該待導入資料表的目標資料表設定及一用於獲取該待導入資料表的執行緒數量設定。(A) According to a data import instruction, a data table to be imported is obtained from a data source to be imported. The data import instruction includes a data source setting indicating the data source to be imported, a target data table setting indicating the data table to be imported, and a number of threads setting for obtaining the data table to be imported.
(B)將該待導入資料表轉換成符合一預定輸入格式的一轉換後資料表,並儲存該轉換後資料表。(B) Convert the data to be imported into a converted data table that conforms to a predetermined input format, and save the converted data table.
(C)根據一資料運算指令執行一運算任務以獲得一運算結果,並儲存該運算結果及執行該運算任務過程中產生的所有記錄檔。(C) Perform a computation task according to a data computation instruction to obtain a computation result, and store the computation result and all record files generated during the execution of the computation task.
(D)將執行該運算任務時產生的記錄檔以圖表的形式進行輸出。(D) Output the log file generated during the execution of the computation task as a chart.
本發明之功效在於:不同的聯邦學習參與方皆可藉由該資料導入指令,利用該資料轉換模組將各自的待導入資料表轉換成適於進行聯邦學習的該預定輸入格式,並可藉由該資料運算指令來利用該資料運算模組完成例如以該轉換後資料進行聯邦學習訓練的該運算任務,使得各參與方皆能以相同的資料處理方式進行聯邦學習,提升了流程的一致性以便於管理。The advantages of this invention are: different participants in federal learning can use the data import command and the data conversion module to convert their respective tables to be imported into the predetermined input format suitable for federal learning. They can also use the data calculation command and the data calculation module to complete calculation tasks such as federal learning training with the converted data. This allows all participants to conduct federal learning in the same data processing manner, improving process consistency and facilitating management.
在本發明被詳細描述之前,應當注意在以下的説明內容中,類似的元件是以相同的編號來表示。Before this invention is described in detail, it should be noted that similar elements are represented by the same designation in the following description.
參閱圖1,本發明資料處理系統1的一實施例,適用於進行聯邦學習。該實施例以雲原生(Cloud Native)容器化(Containerization)的方式部署到多個共同參與聯邦學習的參與方每一者的Kubernetes叢集環境中。藉由此種部署方式,該資料處理系統1的運行將不受各參與方的硬體環境不同所限制。該實施例包含一資料轉換模組11、一資料運算模組12、一儲存模組13及一視覺化模組14。Referring to Figure 1, an embodiment of the data processing system 1 of the present invention is suitable for federated learning. This embodiment is deployed in a cloud-native containerization manner across the Kubernetes cluster environments of multiple participants in the federated learning process. Through this deployment method, the operation of the data processing system 1 is not limited by the different hardware environments of the participants. This embodiment includes a data transformation module 11, a data processing module 12, a storage module 13, and a visualization module 14.
在本實施例中,該資料轉換模組11基於Spark叢集運算框架,並支援進行分散式多執行緒的工作。該資料運算模組12連接該資料轉換模組11及該儲存模組13,並提供了一具有Hadoop運算框架的運行環境,該運行環境例如包括Spark叢集、HDFS叢集及Yarn資源管理叢集。該儲存模組13例如可實施成部署在該資料運算模組12所提供的該運行環境中的HDFS。該視覺化模組14連接該資料運算模組12,例如但不限於實施成部署在該運行環境中的Grafana資料視覺化監控平臺。In this embodiment, the data transformation module 11 is based on the Spark cluster computing framework and supports distributed multi-threaded operations. The data computing module 12 connects to the data transformation module 11 and the storage module 13, and provides a runtime environment with a Hadoop computing framework, including, for example, Spark clusters, HDFS clusters, and Yarn resource management clusters. The storage module 13 can be implemented, for example, as HDFS deployed within the runtime environment provided by the data computing module 12. The visualization module 14 connects to the data computing module 12, and can be, for example, but not limited to, implemented as a Grafana data visualization monitoring platform deployed within the runtime environment.
以下將參閲圖1及圖2來詳細説明該資料處理系統1如何執行一資料處理程序。該資料處理程序包含步驟S21~S25。The following will refer to Figures 1 and 2 to explain in detail how the data processing system 1 executes a data processing procedure. The data processing procedure includes steps S21 to S25.
在步驟S21中,該資料轉換模組11根據一資料導入指令,自一待導入資料源獲取一待導入資料表。該資料導入指令由參與聯邦學習的任一參與方提供,包括一指示出該待導入資料源的資料源設定、一指示出該待導入資料表的目標資料表設定及一用於獲取該待導入資料表的執行緒數量設定,並以領域特定語言(Domain-Specific Language,簡稱DSL)描述該資料源設定、該目標資料表設定及該執行緒數量設定。該待導入資料源例如為檔案系統(File System)或Java資料庫連接(Java Database Connectivity,簡稱JDBC)。檔案系統例如包括Hive分散式資料倉儲系統、Hadoop分散式檔案系統(Hadoop Distributed File System,簡稱HDFS)、安全檔案傳輸協定(Secret File Transfer Protocol,簡稱SFTP)及S3物件檔案儲存服務。JDBC例如包括Hive遠程模式、TD(Treasure Data)資料庫、MSSQL、PSQL及Oracle。In step S21, the data conversion module 11 obtains a table to be imported from a data source according to a data import instruction. This data import instruction is provided by any participant in the federal learning process and includes a source setting indicating the data source to be imported, a target table setting indicating the table to be imported, and a thread count setting for obtaining the table to be imported. The source setting, target table setting, and thread count setting are described in a Domain-Specific Language (DSL). The data source to be imported can be, for example, a file system or Java Database Connectivity (JDBC). File systems include, for example, the Hive distributed data warehouse, the Hadoop Distributed File System (HDFS), the Secret File Transfer Protocol (SFTP), and the S3 object file storage service. JDBC includes, for example, Hive remote mode, TD (Treasure Data) database, MSSQL, PSQL, and Oracle.
在步驟S22中,該資料轉換模組11將該待導入資料表轉換成符合一預定輸入格式的一轉換後資料表,並將該轉換後資料表導入該資料運算模組12。藉由將該任一參與方的待導入資料表轉換成該預定輸入格式,以便統一各參與方提供的資料的格式,便於後續進行聯邦學習。In step S22, the data conversion module 11 converts the data to be imported into a converted data table that conforms to a predetermined input format, and imports the converted data table into the data processing module 12. By converting the data to be imported from any participant into the predetermined input format, the format of the data provided by each participant is standardized, which facilitates subsequent federal learning.
在步驟S23中,該資料運算模組12接收由資料轉換模組11導入的該轉換後資料表,並將該轉換後資料表儲存至該儲存模組13。In step S23, the data processing module 12 receives the converted data table imported by the data conversion module 11 and stores the converted data table in the storage module 13.
在步驟S24中,該資料運算模組12根據一資料運算指令執行一運算任務以獲得一運算結果,並將該運算結果及執行該運算任務過程中產生的所有記錄檔儲存至該儲存模組13。該資料運算指令由任一參與方提供。舉例來說,記錄檔的收集例如但不限於由部署在該運行環境中的Loki日誌系統來實現。In step S24, the data processing module 12 executes a processing task according to a data processing instruction to obtain a processing result, and stores the processing result and all log files generated during the processing of the processing task in the storage module 13. The data processing instruction is provided by any participant. For example, the collection of log files may be implemented, for example, but not limited to, by a Loki logging system deployed in the operating environment.
在一些實施態樣下,該運算任務為根據該任一參與方的轉換後資料表進行聯邦學習訓練以建立一聯邦學習模型,並將該聯邦學習模型的模型參數作為該運算結果。In some implementations, the computational task is to perform federated learning training based on the transformed data of any participant to build a federated learning model, and to use the model parameters of the federated learning model as the computational result.
在另一些實施態樣下,該運算任務為根據該任一參與方的轉換後資料表利用建立的該聯邦學習模型獲得一對應於該任一參與方的轉換後資料表的預測結果,並將該預測結果作為該運算結果傳送至該資料轉換模組11,以使該資料轉換模組11將該預測結果轉換成符合一預定輸出格式的一待導出資料表後導出到該任一參與方的資料庫中。In other embodiments, the computation task is to obtain a prediction result corresponding to the transformed data table of any participant using the established federal learning model, and then send the prediction result as the computation result to the data conversion module 11, so that the data conversion module 11 converts the prediction result into a data table to be exported in a predetermined output format and then exports it to the database of any participant.
在步驟S25中,該視覺化模組14將該資料運算模組12執行該運算任務時產生的記錄檔以圖表的形式進行輸出。In step S25, the visualization module 14 outputs the record file generated by the data processing module 12 when it performs the processing task in the form of a chart.
綜上所述,首先,藉由雲原生容器化的方式部署該資料處理系統1,使得該資料處理系統1的運行不受各參與方的硬體環境不同所限制。其次,各參與方皆可藉由該資料導入指令,利用該資料轉換模組11將各自的待導入資料表轉換成適於進行聯邦學習的該預定輸入格式,並可藉由該資料運算指令來利用該資料運算模組12完成例如以該轉換後資料進行聯邦學習訓練的該運算任務,使得各參與方皆能以相同的資料處理方式進行聯邦學習,提升了流程的一致性以便於管理。故確實能達成本發明之目的。In summary, firstly, by deploying the data processing system 1 using a cloud-native containerized approach, the operation of the data processing system 1 is not limited by the different hardware environments of the participating parties. Secondly, each participating party can use the data import command and the data conversion module 11 to convert their respective data tables to be imported into the predetermined input format suitable for federated learning. Furthermore, they can use the data calculation command and the data calculation module 12 to complete calculation tasks such as federated learning training with the converted data. This allows all participating parties to perform federated learning using the same data processing method, improving process consistency and facilitating management. Therefore, the purpose of this invention is indeed achieved.
惟以上所述者,僅為本發明之實施例而已,當不能以此限定本發明實施之範圍,凡是依本發明申請專利範圍及專利說明書內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。However, the above description is merely an example of the present invention and should not be used to limit the scope of the present invention. Any simple equivalent changes and modifications made in accordance with the scope of the patent application and the contents of the patent specification shall still fall within the scope of the present invention.
1:資料處理系統 11:資料轉換模組 12:資料運算模組 13:儲存模組 14:視覺化模組 S21~S25:步驟 1: Data Processing System 11: Data Conversion Module 12: Data Calculation Module 13: Storage Module 14: Visualization Module S21~S25: Steps
本發明之其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中: 圖1是一方塊圖,示例性地說明本發明資料處理系統的一實施例;及 圖2是一流程圖,示例性地說明該實施例如何執行一資料處理程序。 Other features and effects of this invention will be clearly shown in the embodiments with reference to the drawings, wherein: Figure 1 is a block diagram illustrating, by way of example, an embodiment of the data processing system of this invention; and Figure 2 is a flowchart illustrating, by way of example, how this embodiment performs a data processing procedure.
1:資料處理系統 1: Data Processing System
11:資料轉換模組 11: Data Conversion Module
12:資料運算模組 12: Data Calculation Module
13:儲存模組 13: Storage Module
14:視覺化模組 14: Visualization Module
Claims (10)
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW202636282A true TW202636282A (en) | 2026-09-01 |
| TWI941075B TWI941075B (en) | 2026-10-01 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110908641B (en) | Visualization-based stream computing platform, method, device and storage medium | |
| CN113900810B (en) | Distributed graph processing method, system and storage medium | |
| CN111651365B (en) | Automatic interface testing method and device | |
| CN106528070B (en) | Method and device for generating a data table | |
| CN110046091B (en) | An automatic testing method and device | |
| CN107092489B (en) | Processing method and system based on application version release | |
| CN115687486B (en) | Light-weight data acquisition method and device based on keyle | |
| CN112905323A (en) | Data processing method and device, electronic equipment and storage medium | |
| CN113656471A (en) | Scheme processing method and device, computer equipment and storage medium | |
| CN108459951A (en) | test method and device | |
| CN115438768A (en) | Model reasoning method, device, computer equipment and storage medium | |
| CN115357493A (en) | Test method, test device, electronic equipment and storage medium | |
| CN107329809A (en) | A kind of distributed transaction processing method and system towards multi-data source | |
| CN112613626B (en) | Method and device for monitoring running state of standby system and computer equipment | |
| CN110659323A (en) | Real-time and off-line big data processing system, method, storage medium and terminal | |
| Ivlev et al. | Automation method for configuring IT infrastructure for IT projects | |
| CN114116252A (en) | System and method for storing operation measurement data of regulation and control system | |
| CN106802865B (en) | Response simulation device and method for software testing | |
| CN121960687A (en) | Knowledge base knowledge generation method and device, electronic equipment and storage medium | |
| CN114692872A (en) | Model function calling method and device, storage medium and electronic equipment | |
| CN110879753A (en) | GPU-accelerated performance optimization method and system based on automated cluster resource management | |
| US20160042097A1 (en) | System and method for concurrent multi-user analysis of design models | |
| CN111475375B (en) | A method and device for updating data status | |
| TWM672624U (en) | Data processing system | |
| CN118798833A (en) | Distributed collaborative R&D platform and R&D method for artificial intelligence models |