Resampling Methods: Splitting and k-Folds

To evaluate the performance of a trained machine learning model, we would have to test it on a dataset that it hasn’t seen before. But sometimes there’s just not enough data that would make a sizeable chunk just for testing. A common practice to solve this problem is by holding off a part of theContinue reading “Resampling Methods: Splitting and k-Folds”

Authorize access to AWS using boto3

Amazon Web Services provides a Python SDK called boto3 to programmatically perform actions to our AWS cloud resources such as EC2 instances and S3 buckets. This means that we can build an external front-end application that users interact with (instead of giving access to AWS), and then build the back-end integration with AWS using theContinue reading “Authorize access to AWS using boto3”

Two ways to implement Binary Search in Python

Next to linear search, binary search is arguably the simplest to implement among the many search algorithms. Binary search can be summarized with the following rules: The list in which we are performing the search should be sorted beforehand. If the value being searched is less than the value in the middle of the list,Continue reading “Two ways to implement Binary Search in Python”