简体   繁体   中英

Data fetch from Database for TransmogrifAI

Could you please someone help me for fetching data directly from any MySQL Database instead of using any dataset for TransmogrifAI. If possible can I get the code regarding this or any reference?

Here is a guide on how you can connect to MySQL from Apache Spark.

Once you have you Dataset / RDD materialized you can plug it into TransmogrifAI:

  1. Either by automatically materializing features as shown here .
  2. Or you can create features manually with FeatureBuilder.fromRow function. Then construct OpWorkflow and pass the Dataset into it: workflow. setInputDataset(data) workflow. setInputDataset(data) .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM