How to define prefect deployments
The Prefect documentation about deplyments are super vague. This post explains how to add deployments. Table of content Where are deploym ...
Learn how to eat through Python topics.
The Prefect documentation about deplyments are super vague. This post explains how to add deployments. Table of content Where are deploym ...
The Django syntax error on migrating is very annoying, specially when you don’t find any error when looking for one. This post contains a working solution. Table of contents ...
Rye is impressive both as a package manager and as an onboarding tool for Python projects. I have done quite some workshops/sessions and one main pain point is getting Python up and running. Rye in ...
Really, oreiller is the french word for a pillow. I always heard about the PIL fork, Pillow but never used it. When I finally used it, I found it to be tedious sometimes. Like including emoj ...
There are many different approaches to chatting with your own data. One way is to upload your PDF to the OpenAi chatGPT cloud. This comes with several limitations such as data being deleted or um ...
LangChain is a superb library to productionize LLMs. It has few concepts which make it great. If you want to quickly get started with LangChain as maybe like me you have production in front of you, ...
pipx allows you to use python projects on the commandline without using a virtual environment each time. Here’s how to install it on Ubuntu and Linux Mint ...
Deep learning is one of the most useful and trending topics in the current world scenario, which works on the concepts of neural networks, computer vision, perceptrons, and many other techniques. P ...
Ml wizard
Bag of Words is a type of vectorization technique used to transform the textual data into vector form in order to feed the data to the model for training purposes. The bag of words vectorization te ...
Ml wizard
In natural language processing, Word2Vec is one of the most widely used vectorization techniques used for transferring words or textual data into vector or numerical form to feed it to the machine ...
Ml wizard
Vectorization is a technique in natural language processing that is used to transform the text into vectors. However, multiple vectorization techniques are used to transform different texts. TFIDF ...
Ml wizard
We can take linear algebra as a backbone of machine learning, as almost all the machine learning techniques and algorithms somehow use linear algebra to some extent. Some famous machine learning te ...
Ml wizard
Linear algebra in machine learning is one of the essential topics to learn and have an idea about, as it is applicable and plays a critical role in many machine learning applications. Recommendatio ...
Ml wizard
In machine learning to achieve higher accuracies and performance of the model, the data quality plays a major role while enhancing the model. If good quality data with meaningful f ...
Ml wizard
Heatmaps can bring your data to life. Versatile and eye-catching. There are many situations where they can highlight important relationships in your data. Specifically, we will discuss how you can ...
Data scientist
Matrix decomposition in linear algebra is one of the most valuable techniques for reducing the matrix into smaller parts. In matrix decomposition, the eigendecomposition is a fundamental concept th ...
Ml wizard
Data and its quality affect machine learning models and their accuracy, and the quality of the data can not be well in some types of problems which can be solved by machine learning. Here the scale ...
Ml wizard
In machine learning, the algorithm plays a significant role while training and building a successful model. According to the data and its behavior, a proper machine learning algorithm should be sel ...
Ml wizard
In machine learning, using an appropriate algorithm according to the behavior of the data and its pattern is an essential thing to achieve higher accuracies and accurate performing models. Many mac ...
Ml wizard
Machine Learning algorithms are one of the most important things to decide during model training and building. All the datasets and problem statements related to that in machine learning are not th ...
Ml wizard
Cost functions in machine learning measure the performance of the machine learning algorithm trained on a particular dataset. By measuring the cost function or cost for a specific model, we can eas ...
Ml wizard
Activation functions in deep learning are the functions that decide the output from node or hidden layers from a given set of inputs in neural networks. There are many activation functions used in ...
Ml wizard
Machine learning is the concept that a computer program can learn and adapt to new data without human intervention. It is a sub-field of artificial intelligence that keeps a computer’s built- ...
Ml wizard
The Ensemble technique is one of the best-performing techniques used in the field of machine learning for getting better results on complex types of datasets. There are many ensemble techniques ava ...
Ml wizard
Which database is best? The question, obviously, depends on what you want to use it for. ...
Data scientist
Statistics is a critical component of data science and machine learning algorithms. Almost all the machine learning algorithms use mathematics in the backend, which is linear algebra and statistics ...
Ml wizard
The Lasso regression is a regularization technique and a type of regression that is well-suited for m ...
Ml wizard
We will understand what is automatic differentiation for absolute beginners, although this concept requires a fair amount of theoretical understanding of derivatives and the chain rule, But don&rsq ...
Data scientist
In deep learning, optimizers are the type of function which are used to adjust the parameters of the model. The optimizers are used in deep learning to adjust the weights and biases of the neural n ...
Ml wizard
Topology is a classical branch of mathematics, born essentially from Euler’s studies in the XVII century. It deals with the abstract notion of shape and geometry. The last de ...
Data scientist
Miscellaneous routines in scipy included convenient functions. This article cover the removal of this feature. Table of content Why was _Miscellaneous routines_ r ...
Data scientist
NeuroJson, founded by Qianqian Fang, is an open-source project which aims to create easy-to-adopt, easy-to-ext ...
Data scientist
This article is a gentle introduction to symmetric indefinite matrices in Python Table of content What are symmetric indefinite matrices andwhere are they used? Imple ...
Data scientist
Biosim4 is a project in which there’s a 2-dimensional world where creatures with neural brains live in it. They have genomes (complete genetic information) that they pass on ...
Data scientist
There exist many terminal plotting libraries. In Python there are some 3-4 main ones. In this post we’ll have an overview of the libraries. ...
Django packages in Flask seems like a far-away dream, but shopyo 4.6.0 allows you to install Shopyo apps from pypi. What is Shopyo? Sh ...
P5Js is an implementation of processing.org’s library in JavaSript. It can be thought of as a canvas management library. Integrating such a library with a common backend like Flask unlocks am ...
Shopyo is a framework to get started with Flask really quick. It includes several libraries to get started by default. In this tutorial we will build ...
Talk notes thepkg/ # is a package since has __init__.py __init__.py a.py b.py data/ ...
This article shows how to integrate Tinymce 5 with Flask even including csrf protection! Text area <textarea id="content"></textarea ...
This page lists the very best Python engineering articles of the internet, hand-picked to give hours and hours of pure reading joy. It is especially designed for onboarding new members on your Pyt ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ''' Abdur-Ramaan Janhangeer Updated ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ''' Abdur-Ramaan Janhangeer Updated ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ''' Abdur-Ramaan Janhangeer Updated ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. To follow this tutorial, download/clone ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ''' Abdur-Ramaan Janhangeer Updated ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ''' Abdur-Ramaan Janhangeer Updated ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ''' Abdur-Ramaan Janhangeer Updated ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. Callback demo ''' Abdur-Ramaa ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. Simple window Be sure to read first: ...
People talk about FastAPI a lot, but they give little attention to Sebastián Ramírez, alias tiangolo. It’s so obvious to me that FastAPI is a reflection of someone cool. It’s hard to mi ...
I wanted to do import module module() I thought this did not exist in Python but Chris Angelico, a P ...
Python-efl is the binding for EFL, an awesome and performance-obcessed set of libraries. EFL stands for Enlightment Foundation Libraries. It was started for the ...
I was looking through Grinberg’s tuto on celery and flask. I saw querying tasks by ...
Using celery 5.1.2 you can get the task id by the following code snippet: from celery import current_app as celery_app # in your function: celery_app.tasks[' ...
Here’s a convenient way to set task id in celery: import uuid # in-built in Python task_id = str(uuid.uuid1()) task_dosomething.apply_async(task_id=task ...
After much struggling, here’s the magical formula we got for getting the server response back for chunck uploads: var myDropzone = new Dropzone(document ...
FastAPI positions itself as one of the best choices for API development in Python. The project is polished for sure, the ...
12 association analysis Machine Learning ♡ supervised learning 👉 ♡ unsupervised learning ♡ reinforcement learning unsupervised learning is where your program has to find how ...
11 unsupervised learning Machine Learning ♡ supervised learning 👉 ♡ unsupervised learning ♡ reinforcement learning unsupervised learning is where your program has to find how ...
10 naive bayes Machine Learning 👉♡ supervised learning ♡ unsupervised learning ♡ reinforcement learning recap: 🔖 types of supervised learning ✅ classification 📑 ...
9 neural networks Machine Learning 👉♡ supervised learning ♡ unsupervised learning ♡ reinforcement learning recap: 🔖 types of supervised learning ✅ classification 📑 ...
8 support vector machines Machine Learning 👉♡ supervised learning ♡ unsupervised learning ♡ reinforcement learning recap: 🔖 types of supervised learning ✅ classificati ...
This problem was asked by Stripe. Given an array of integers, find the first missing positive integer in linear time and constant space. In other words, find the lowest positive integer that ...
This problem was asked by Jane Street. cons(a, b) constructs a pair, and car(pair) and cdr(pair) returns the first and last element of that pair. For example, car(cons(3, 4)) returns 3, and ...
This problem was asked by Google. Given the root to a binary tree, implement serialize(root), which serializes the tree into a string, and deserialize(s), which deserializes the string back ...
This problem was asked by Uber. Given an array of integers, return a new array such that each element at index i of the new array is the product of all the numbers in the original array exce ...
This problem was recently asked by Google. Given a list of numbers and a number k, return whether any two numbers from the list add up to k. For example, given [10, 15, 3, 7] and k of ...
Here’s how to solve the file not found for training chatterbot on Google collab: # Install !pip install chatterbot !pip install chatterbot-corpus # mov ...
Chris has been learning Flask to help with Dog Care. He felt Flask would help him in his business activities! Let’s have a chat with him! Welcome Chris Hopkinson, Can you prese ...
Since you already know how to implement notifications, let’s see how to implement beautiful notifications in Flas ...
Implementing notifications in Flask goes way beyond using flash. You have to add this snippet in your templates: <div id="flashed-messages"> ...
Let’s say someone codes a url like this: http://domain.com/do/something?next=http://domain.com/homepage Now an attacker can craft the ...
Let’s say you want to have some variables available in all templates by default. There’s how you do it: @app.context_processor def inject_glob ...
Flask-wtf recommends using @csrf.exempt to disable csrf protection for particular routes as in the case of APIs. Now this is pretty confusing. What does csrf refers to? I ...
Steps: Have a login route accept a next parameter Define your model view and admin index view Register models In the example below, auth.login is the lo ...
Here is a sample login and logout route taken from the shopyo web framework. You can learn ...
Note: I wrote a quite complete article on the Zen but for some reason it went down in seo history. I am tired seeing people write ‘in-depth’ article with commentaries from the top o ...
Table of contents Why were Python generators introduced? How do Python Generators differ from normal functions? Execution flow Immediate usefulness ...
Here’s a realtime CPU monitor using PyGame: ''' Author: https://github.com/Abdur-rahmaanJ Instructions: pip install psutil hooman==0.3.6 ''' from ...
""" Author: Abdur-Rahmaan Janhangeer Github: https://github.com/Abdur-rahmaanJ Instructions: pip install hooman """ from hooman imp ...
Linux owners configure makefiles so as to have easy commands to perform operations such as make dependencies to pip install required packages. Here are the dry simple steps to run make ...
There are in the Python world many Flask Linux-only apps. However in many case, with some twerking we can make them work on Windows. We’ll take the case of the AFPy site. First fork th ...
Shopyo is an Open Source Flask-based, Python-po ...
import sys from PySide2 import QtCore from PySide2 import QtWidgets from PySide2 import QtGui class MainWindow(QtWidgets.QMainWindow): def __init__(self, par ...
Here is my personal list of legally free Python books. Warning: Packt free books are highly unreliable, what can be free today can no longer be free tomorrow They were included as they are ...
Here is a list of Python free courses that i maintain An Introduction to Interactive Programming in Python (Part 1) ...
To upload your project to Pypi, this assumes you have your setup.py ready cd into your package directory and type python setup.py sdist ...
The Python programmer’s journey inevitably leads him to one of the black belts of the industry: packaging and distribution. But, particularly in Python, distribution can also be a black beast ...
Python is set to release a new version next year, the shiny 3.9. This one omitted the sys.argv change rolled back in alpha2 Here’s our take of the most noticeable changes: Keyword Arg ...
Question: I have a QTableView in PyQT5 / PySide2 I want to * Know if a row is selected (my tableview is set to select by rows) * Know which row is selected Thanks Answer: ...
Python’s help function lets you see the help message written for you by the developer. It is particularly useful in IDLE / shell to inspect modules and explore. Here is a sample shell ...
String manipulation functions, good ones are available by default in Python. Ignorance make people always re-invent. Python is powerful and … thoughtful. We were strict and choose only 5, the five ...
If you are in web development, maybe you’ve heard of Sass, Less, Pug, ...
7 random forest Machine Learning 👉 ♡ supervised learning ♡ unsupervised learning ♡ reinforcement learning recap: 🔖 types of supervised learning ✔ cla ...
Machine Learning 👉 ♡ supervised learning ♡ unsupervised learning ♡ reinforcement learning recap: 🔖 types of supervised learning ✔ classification 📑 ...
5 mixed methods Machine Learning 👉 ♡ supervised learning ♡ unsupervised learning ♡ reinforcement learning types of supervised learning ✔ classification 🗒 ...
#4 gradient descent and cost function Machine Learning 👉 ♡ supervised learning ♡ unsupervised learning ♡ reinforced learning ☄ cost functi ...
geo plotting has never been so easy. thanks dhrumil patel! download the data file here ...
Machine Learning ♡ supervised learning ♡ unsupervised learning ♡ reinforcement learning #3 supervised learning: regression ...
Machine Learning ♡ supervised learning ♡ unsupervised learning ♡ reinforcement learning #2 supervised learning in supervised learn ...
Machine Learning ♡ supervised learning ♡ unsupervised learning ♡ reinforcement learning #2 supervised learning in supervised learn ...
Question: My QTableView is set to select by rows only. How do i get the value of cells in the selected row? Answer: selection_model = tableview.selectionModel() ...
what is it? wikipaedia defines machine learning as: _the scientific study of algorithms and statistical models that computer systems use to progressively improve th ...
Machine Learning ♡ supervised learning ♡ unsupervised learning ♡ reinforcement learning #2 supervised learning in supervised learn ...
prime numbers are surprisingly easy to check for. to check if a number is prime, we divide it by it’s factors. 1 is not prime def is_prime(num): if ...
famous authors are praised, respected, admired and missed due to their works. after reading all the titles of an excellent author, one is left wishing for more. curiously enough we now have the abi ...
we start the problem series on PMC (Python Members Club) with Armstrong Numbers. definition an armstrong number is a number such that the sum of the digits in the number ra ...
Sometimes you need more than a cli program. You need more flexibility and control. A Domain Specific Language (DSL) is the right fit for specialised tasks. This post shows how you can build your ow ...
go on to your project root directory first create a virtual environment with syntax python3 -m venv python3 -m venv niceproject ...
Python regular expressions is often an overlooked topic in the python apprentice path due to it’s seemingly mingled nature. If programming was new enough, you don’t need those bizarre s ...
in case this does not load, view it here ...
in case it does not load, you can view it here ...
if you want to calculate the distance between 4 features coordinates, you do it like that : A (1,2,5,1) B (7, 1, 3, 0) import math dist = math. ...
have you ever used gmail or hotmail on the web? it seems so natural that we take it for granted. in this post we’ll see how to build a basic web mail client to send mail … using flask ...
opencv is one of the most difficult python package to install. it’s not a pip install easy package issue. in this post, we’ll see how to painlessly install it. Target Os ========= ...
establishing an ssh connection is incredibly useful to manage your pi from another device/remotely be it your android phone or pc Steps = ...
If you’ve worked with tkinter’s Text widget, you may notice that when you add many tags to it sometimes things get messed. So let’s dive right into this. We will use syntax highli ...
Coder
In this post we’ll cover the software setup part. The raspberry pi is an empty computer, empty of peripherals and os. the first step is to install the os. Target Model ============ ras ...
let us say you have a character moving across the screen, and you want to have it’s location in terms of the map coordinate like (0,0), (3,2) instead of the actual location, like if you want ...
this code generates random maps on mouse press. it is really just a simple 2d array value filling. a modification of this art ...
game map rendering or simply map rendering is a nice technique that is used to generate worlds. explanations follow suit : demo explanations ...
if ever you wanted to implement a polygon drawer, here it is : explanations nodes = [ [50,40], [40,50] ] first we added s ...
let us say you want to print : {text} using '{ {} }'.format(content) how to escape th ...
machine learning is becoming crucial to add to your backpack. this post attempts to show a basic application of machine learning. we need to determine whether some cutlery items are bowls or mugs o ...
a hard question in matplotlib is to annotate each point with a text or label. answers range from ax.annotate to some more weird stuffs. fortunately, the answer is a simple one! this question poses ...
scope by indentation is an alternative to curly braces and is used by languages like python and pug. it certainly is more human-friendly as experience gathered tends to produce more and more friend ...
we have drafted our data usage policy and taken appropriate measures to ensure transparency. it can be found here ...
knowing how to build a lexer allows you to extend your applications and opens up a whole new world. You can write your own DSLs or your own language or just better separate symbols: in other words, ...
[caption id=”attachment_95” align=”aligncenter” width=”149”] ...
Coder
tkinter is fine once you understand it. let us see what problem user vikas was having and how to fix it! [caption id=”attachment_85” align=”aligncenter” width=” ...
[caption id=”attachment_77” align=”aligncenter” width=”300”] ...
[caption id=”” align=”aligncenter” width=”480”] gui package for python[/caption] ...