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.
Tag: python
K-fold cross-validation in Scikit Learn
Get introduced to the concept of K-fold cross validation, and understand its implementation in scikit learn with an example.
Scikit learn: f1-weighted vs. f1-micro vs. f1-macro
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.
How to use locust for load testing your HTTP IoT Backend
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!
How to use Python virtual environment in VS Code
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
How to add custom distance metric in DBSCAN
Learn how to set the custom distance function and the metric params for that function in DBSCAN, for n-dimensional data.
Numpy “releases” GIL. What does that mean?
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.
How to Install Graphviz on Windows
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
How to configure statement timeout in psycopg2
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.
Fire and forget API calls using requests in Python
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.