<jupyter_start><jupyter_text>Feature Lists Manipulation  ScopeThe scope of this notebook is to provide instructions on how to create and manipulate custom feature lists using the Python API as well as how to train a model using a custom feature list. BackgroundFeature lists control the subset of features that DataRobot uses to build models.  Requirements- Python version 3.7.3-  DataRobot API version 2.19.0. Small adjustments might be needed depending on the Python version and DataRobot API version you are using.Full documentation of the Python package can be found here: https://datarobot-public-api-client.readthedocs-hosted.com/en/It is assumed you already have a DataRobot Project object and a DataRobot Model  object.  Import Libraries<jupyter_code>import datarobot as dr<jupyter_output><empty_output><jupyter_text>Listing Available Feature Lists<jupyter_code>project.get_featurelists()<jupyter_output><empty_output><jupyter_text>Creating a custom Feature ListTo create a custom feature list use the create_featurelist command.<jupyter_code>featurelist = project.create_featurelist('YOUR_CUSTOM_FEATURELIST_NAME', 
                                         features=project.get_featurelists()[0].features[0:15]) #I could also provide a list<jupyter_output><empty_output><jupyter_text>Training a model with a custom feature list<jupyter_code>model.train(featurelist_id = featurelist.id)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.05898876404494382, 'fraction_numerical': 0.007724719101123595, 'mean_word_length': 5.658878504672897, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '173380', 'license': 'Apache-2.0', 'n_tokens_mistral': 404, 'n_tokens_neox': 390, 'n_words': 137, 'path': 'Model Building/Python/Feature Lists Manipulation.ipynb', 'repo_name': 'datarobot-community/api-samples-for-data-scientists', 'size': '1424'}