google-cloud-automlautoml

How to export a Google AutoML Text Classification model?


I just finished training my AutoML Text Classification model (single-label).

I was planning to run a Batch Prediction using the console, but I just found out how expensive that will be because I have over 300,000 text records to analyze.

So now I want to export the model to my local machine and run the predictions there.

I found instructions here to export "AutoML Tabular Models" and "AutoML Edge Models". But there is nothing available for text classification models.

I tried following the "AutoML Tabular Model" instructions because that looked like the closest thing to a text classification model, but I could not find the "Export" button that was supposed to exist on the model detail page.

So I have some questions regarding this:

  1. How do I export a AutoML Text Classification model?

  2. Is a AutoML Text Classification model the same thing as an AutoML Tabular model? They seem very similar because my text classifiction model used tabular CSV to assign labels and train the model.

  3. If I cannot export AutoML Text Classification model (urgh!), can I train a new "Tabular" model to do the same thing?


Solution

    1. Currently, there is no feature to export an AutoML text classification model. Already a feature request exists, you can follow its progress on this issue tracker.

    2. Both the models are quite similar. A tabular data classification model analyzes your tabular data and returns a list of categories that describe the data. A text data classification model analyzes text data and returns a list of categories that apply to the text found in the data. Refer to this doc for more information about AutoML model types.

    3. Yes, you can do the same thing in an AutoML tabular data classification model if your training data is in tabular CSV file format. Refer to this doc for more information about how to prepare tabular training data.

    If your model trained successfully in an AutoML tabular data classification, you can find an Export option at the top. Refer to this doc for more information about how to export tabular classification models.

    enter image description here