Python model builder3/15/2023 ![]() Missing data is one of the most common issues we face when working with real-world data. standardise the range of values for each measurement.split data into training, validation and testing datasets.The workflow for preprocessing data prior to running it through a machine learning algorithm will vary. df = pd.read_csv('Data/Volve/volve_wells.csv', This is done by calling upon pd.read_csv() and passing in the location of our raw data file.Īs the CSV file contains numerous columns, we can pass in a list of names to the usecols parameter, as we only want to use a small selection for this tutorial. Once the libraries have been imported we can move onto importing our data. Full details of the license agreement can be found here: The Volve data license is based on CC BY 4.0 license. Full details of the dataset, including licence can be found at the link below. The data used within this tutorial is a subset of the Volve Dataset that was released by Equinor in 2018. metrics: used to assess our model performanceįrom sklearn.model_selection import train_test_splitįrom sklearn.neural_network import MLPRegressorįrom sklearn.preprocessing import StandardScalerįrom sklearn import metrics Loading Well Log Data Data Source.StandardScaler from preprocessing: used to standardise our data so that they are similarly scaled.MLPRegressor from neural_network: this is the Neural Network algorithm we will be using.train_test_split from model_selection: used to split our data into training and validation datasets.Then, from Scikit-Learn, we will be importing the following modules: matplotlib: used to create graphs of the data.pandas: used to load data in from a CSV file.Implementing an Artificial Neural Network in Python using Scikit-Learn Importing Python Librariesīefore we begin our Artificial Neural Network python tutorial, we first need to import the libraries and modules that we are going to require. If you want to find out more about how Artificial Neural Networks work, I would recommend exploring the article below. A single output layer, which contains our target variable(s)Ī single layer neural network model that takes in multiple logging measurements and predicts a single continuous target variable.Multiple hidden layers, which exist between the input and output layers, and can be a single layer deep or multiple layers deep.A single input layer, which contains the features that the model is trained on and applied to.ANN’s are composed of multiple layers containing nodes. They “learn”, or rather are trained to identify patterns within the data, given a known target variable and a series of known inputs. Neural Networks, or Artificial Neural Networks (ANN’s) as they are sometimes called, are formed from a series of functions which have been inspired by the way the human brain solves problems. We will be applying the model to the task of predicting a logging measurement that is commonly absent from well measurements. In this article, I will show you how to create a simple Artificial Neural Network model using scitkit-learn. Within petrophysics and geoscience, we can use Neural Networks to predict missing log measurements, create synthetic curves or create continuous curves from discretely sampled data. These algorithms can be applied to regression-based problems as well as classification-based problems. They can be used for modelling a variety of complicated tasks such as image processing, fraud detection, speech processing, and more. Neural Networks are a popular (mostly) supervised machine learning algorithm.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |