<commit_before><span style="float:right;">[[source]](https://github.com/uber/ludwig/blob/master/ludwig/api.py#L66)</span>
# LudwigModel class

```python
ludwig.api.LudwigModel(
  model_definition,
  model_definition_file=None,
  logging_level=40
)
```

Class that allows access to high level Ludwig functionalities.

__Inputs__


- __model_definition__ (dict): a dictionary containing information needed
   to build a model. Refer to the [User Guide]
   (http://ludwig.ai/user_guide/#model-definition) for details.
- __model_definition_file__ (string, optional, default: `None`): path to
   a YAML file containing the model definition. If available it will be
   used instead of the model_definition dict.
- __logging_level__ (int, default: `logging.ERROR`): logging level to use
   for logging. Use logging constants like `logging.DEBUG`,
   `logging.INFO` and `logging.ERROR`. By default only errors will be
   printed. It is possible to change the logging_level later by using
   the set_logging_level method.

__Example usage:__


```python<commit_msg>doc: revert to prior version<commit_after><span style="float:right;">[[source]](https://github.com/uber/ludwig/blob/master/ludwig/api.py#L66)</span>
# LudwigModel class

```python
ludwig.api.LudwigModel(
  model_definition,
  model_definition_file=None,
  logging_level=40
)
```

Class that allows access to high level Ludwig functionalities.

__Inputs__


- __model_definition__ (dict): a dictionary containing information needed
   to build a model. Refer to the [User Guide](http://ludwig.ai/user_guide/#model-definition) 
   for details.
- __model_definition_file__ (string, optional, default: `None`): path to
   a YAML file containing the model definition. If available it will be
   used instead of the model_definition dict.
- __logging_level__ (int, default: `logging.ERROR`): logging level to use
   for logging. Use logging constants like `logging.DEBUG`,
   `logging.INFO` and `logging.ERROR`. By default only errors will be
   printed. It is possible to change the logging_level later by using
   the set_logging_level method.

__Example usage:__


```python
{'fraction_non_alphanumeric': 0.09732016925246827, 'fraction_numerical': 0.0037611659614480487, 'mean_word_length': 4.766937669376694, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2989037', 'n_tokens_mistral': 641, 'n_tokens_neox': 622, 'n_words': 210}