Key takeaways
- The lifecycle of machine learning models includes training, deployment, and maintaining predictive performance over time.
- A typical machine learning pipeline encompasses data collection, cleaning, feature extraction, model validation, and visualisation.
- Feature extraction is crucial for simplifying models and reducing training times while preserving information.
- Modern data often features high-dimensional vectors, making effective feature selection essential to avoid the curse of dimensionality.
The life cycle of a machine learning models involves a training phase, where a typical data scientist develops a model with good prediction based on historical data and features extracted from the data at hand. This model is then put into production with the hope that it would continue to have similar predictive performance during the course of its deployment.
A typical machine learning pipeline would consist of the following processes:
- Data collection
- Data cleaning
- Feature extraction (labelling and dimensionality reduction)
- Model validation
- Visualisation
Denoising To Solve Identity Function Problem
An encoder part will be equivalent to PCA if linear encoder, linear decoder, square error loss function with normalized inputs are used. Which means PCA is restricted to linear maps only whereas autoencoders are not. Though these models were developed to handle non-linearities in data, Autoencoders with more hidden layers than inputs run the risk of learning the identity function – where the output simply equals the input – thereby becoming useless In order to overcome this, Denoising AutoEncoders(DAE) was developed. In this technique, the input is randomly induced by noise. This will force the autoencoder to reconstruct the input or denoise.
def get_corrupted_input(self, input, corruption_level):
This function keeps 1-corruption_level entries of the inputs the same and zero-out randomly selected subset of size ``corruption_level
return self.theano_rng.binomial(size=input.shape, n=1,p=1 - corruption_level,
dtype=theano.config.floatX) * input
Check the full implementation of DAE here
In short, a Denoising Auto-Encoder does two things:
- try to encode the input (preserve the information about the input)
- try to undo the effect of a corruption process stochastically applied to the input of the auto-encoder.
Conclusion
The idea of training a multi-layer perceptron and denoising tasks is not new. The approach was first introduced by LeCun (1987) as an alternative method to learn an (auto-)associative memory similar to Hopfield Networks (Hopfield, 1982). Experiments done in the past show that, contrary to ordinary autoencoders, Denoising AutoEncoders(DAE) are able to learn edge detection similar to a Gabor filter from natural image patches and larger stroke detectors from digit image. This clearly establishes the value of using a denoising criterion as a tractable unsupervised objective to guide the learning of useful higher-level representations.Further reading:
https://deepai.org/machine-learning-glossary-and-terms/denoising-autoencoderSpotted an error? Tell our editors. Read our editorial standards and corrections.
Selling to AI teams? Put your brand in front of the 5M+ people who read AIM every month. Plan a campaign




