Learn how to delete users from Cognito using lambda functions in two ways: admin_delete_user and delete_user. Also see how the two methods compare.
Get introduced to the concept of K-fold cross validation, and understand its implementation in scikit learn with an example.
Learn the difference between the three types of averages that you can get for f1 score for a multi-class classification problem: weighted, macro and micro.
So you have an IoT system that works flawlessly for one device. How do you know if it will work well for thousands of devices? Test it out with locust!
If you have created a python virtual environment and wish to use it to run your code in Visual Studio Code, follow these steps: Open VS Code and click on the Python Interpreter at the bottom. Alternatively, you can click Ctrl+Shift+P and Select ‘Python: Select Interpreter’. Click on ‘Enter interpreter path’, and then click on… Continue reading How to use Python virtual environment in VS Code
Learn how to set the custom distance function and the metric params for that function in DBSCAN, for n-dimensional data.
Why does dask array or dask dataframe use a threads-based scheduler by default? Doesn’t the GIL play the spoilsport? Or is numpy immune to GIL? Find out here.
Graphviz installation happens in two parts: Graphviz System Library Graphviz Python Library Now, if you use the Anaconda environment, then the installation becomes quite straightforward. All you need to run is This will install both the system library and the python library. However, if you are looking for the pip install, method, then follow the… Continue reading How to Install Graphviz on Windows
Worried that your query will run forever and overwhelm your DB or make your app or API incredibly slow? Then learn how to add timeouts to PostgreSQL queries.
Learn a simple hack to fire and forget API calls made using the requests library of python. Use this hack when you aren’t concerned with the API response.