This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from pprint import pprint | |
import pandas as pd | |
import torch | |
from ludwig.utils.inference_utils import to_inference_module_input_from_dataframe | |
preprocessor = torch.jit.load( | |
f"{EXPERIMENT_DIRECTORY}/torchscript/inference_preprocessor.pt") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from pprint import pprint | |
import pandas as pd | |
import torch | |
from ludwig.models.inference import InferenceModule | |
from ludwig.utils.inference_utils import to_inference_module_input_from_dataframe | |
inference_module = InferenceModule.from_directory( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pprint import pprint | |
import pandas as pd | |
from ludwig.models.inference import InferenceModule | |
inference_module = InferenceModule.from_directory( | |
f"{EXPERIMENT_DIRECTORY}/torchscript") | |
input_df = pd.read_parquet(f"{DATA_DIRECTORY}/twitter_bots.parquet") | |
input_sample_df = input_df.head(2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input_features: | |
- name: description | |
type: text | |
column: description | |
- name: default_profile | |
type: binary | |
column: default_profile | |
- name: default_profile_image | |
type: binary | |
column: default_profile_image |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-10-27T17:48:37.284Z","extensionVersion":"v3.4.3"} |