Useful tips for everyday
What cross-validation technique would you use on a time series dataset? So, rather than use k-fold cross-validation, for time series data we utilize hold-out cross-validation…
How do you handle categorical features with high cardinality? Dealing with categorical features with high cardinality: Target… Label Encoding (scikit-learn): i.e. mapping integers to classes.…
How do I test my machine learning model? How do you write model tests? check the shape of your model output and ensure it aligns…
What does ” shuffle ” do in fit _ generator? I manually built a data generator that yields a tuple of [input, target] each call.…
What does a convolutional layer learn? A convolutional layer contains a set of filters whose parameters need to be learned. The height and weight of…
What is Dataflow in GCP? Dataflow is a managed service for executing a wide variety of data processing patterns. The documentation on this site shows…
How to get unique values from a list in Python? Using Python’s import numpy, the unique elements in the array are also obtained. In first…
How to find max value from multiple columns? And not only the maximum or minimum: we can modify the code to find average, sum, etc.…
How do you create a compression table? Create Table. Table compression is enabled by adding the COMPRESS keyword to the end of the table definition,…
Is feature scaling always necessary? Feature scaling is essential for machine learning algorithms that calculate distances between data. If not scale, the feature with a…