Author: Deep Learner
Fused multiply-add (with a single rounding) for Python
Fused multiply-add for Python. Fused multiply-add computes (x*y) + z with a single rounding. Useful for dotproducts, matrix multiplications, polynomial evaluations (e.g., with Horner’s rule),Newton’s method for evaluating functions, convolutions, artificial neural networks etc. Use as import pyfma out = pyfma.fma(3.0, 2.0, 1.0) # 3.0*2.0 + 1.0 = 7.0 Also works with NumPy inputs: import numpy import pyfma x = numpy.random.rand(3, 4, 5) y = numpy.random.rand(3, 4, 5) z = numpy.random.rand(3, 4, 5) out = pyfma.fma(x, y, z) Built with […]
Read moreParsing and validating request arguments: headers, arguments, cookies, files, json, etc
Sanic integration with Webargs. Parsing and validating request arguments: headers, arguments, cookies, files, json, etc. IMPORTANT: From version 2.0.0 webargs-sanic requires you to have webargs >=7.0.1. Please be aware of changes happened in version of webargs > 6.0.0. If you need support of webargs 5.x with no location definition, please use previous version(1.5.0) of this module from pypi. webargs is a Python library for parsing and validating HTTP request arguments, with built-in support for popular web frameworks. webargs-sanic allows you […]
Read moreA documentation injection tool for your classes when using Fast API
LuSyringe is a documentation injection tool for your classes when using Fast API Benefits The main benefit is being able to separate your business code (classes) from the logic of the documentation and pydantic validation. For example, a class that serves as a response for an endpoint may look like this without LuSyringe: class HealthResponse(BaseModel): ping: str = Field(…, example=”pong”) version: str = Field(…, example=”1.0.0″) And that’s not bad at first look, but the response class is tightly coupled of […]
Read moreHow Long Does It Take to Learn Python?
You’ve probably found at least one blog post where the author reveals that they learned Python in a handful of days and quickly transitioned into a high-paying job. Some of these stories may be true, but they don’t help you prepare for a steady learning marathon. So, how long does it really take to learn Python, and is it worth your time investment? In this article, you’ll learn: What “learning Python” means and how you can measure your progress What […]
Read moreDeepConsensus uses gap-aware sequence transformers to correct errors in Pacific Biosciences Circular Consensus Sequencing data
DeepConsensus uses gap-aware sequence transformers to correct errors in PacificBiosciences (PacBio) Circular Consensus Sequencing (CCS) data. Installation From pip package pip install deepconsensus==0.1.0 You can ignore errors regarding google-nucleus installation, such as ERROR: Failed building wheel for google-nucleus. From source git clone https://github.com/google/deepconsensus.git cd deepconsensus source install.sh (Optional) After source install.sh, if you want to run all unit tests, you cando: ./run_all_tests.sh Usage See the quick start. Where does DeepConsensus fit into my pipeline? After a PacBio sequencing run, DeepConsensus […]
Read moreA tiny social network built with FastAPI and React+RxJs
A tiny social network (for bunnies), built with FastAPI and React+RxJs. Included features: :speech_balloon: chat :red_circle: online/offline friends status :abcd: “Is typing…” indicator :two_men_holding_hands: friend requests and suggestions :bell: notifications :postbox: posts :pencil: comments :scroll: conversations history :rabbit2: random profile picture generation :lock: authentication Tech stack: :snake: Python 3.8 + FastAPI :notebook_with_decorative_cover: PostgreSQL 13 + async SQLAlchemy (Core) + asyncpg driver :link: Neo4j graph db for relationships between users and fast queries :dart: Redis for caching and Pub/Sub :zap: Socket.IO […]
Read moreA machine learning model deployment project of Iris classification model in a minimal UI using flask web framework
GitHub – kittupriyatham/Machine-Learning-Model-Deployment: This is a machine learning model deployment project of Iris classification model in a minimal UI using flask web framework and deployed it in Azure cloud using Azure app service. We initially made this project as a requirement for an internship at Indian Servers. We are now making it open to contribution. This is a machine learning model deployment project of Iris classification model in a minimal UI using flask web framework and deployed it in Azure […]
Read moreSecurity-related flags and options for C compilers in python
This guide is intended to help you determine which flags you should use to compile your C Code using GCC, Clang or MSVC, in order to: detect the maximum number of bugs or potential security problems. enable security mitigations in the produced binaries. enable runtime sanitizers to detect errors (overflows, race conditions, etc.) and make fuzzing more efficient. Disclaimer: The flags selected and recommended here were chosen to maximize the number of classes of detected errors which could have a […]
Read moreAdd filters (background blur, etc) to your webcam on Linux
webcam-filters Add filters (background blur, etc) to your webcam on Linux. Video conferencing applications tend to either lack video effects altogether or support only a limited set of capabilities on Linux (e.g. Zoom [1], Google Meets [2]). Goal here is to provide a virtual webcam via v4l2loopback with a common set of filters that can be used everywhere. Usage Passthrough (no-op): $ webcam-filters –input-dev /dev/video0 –output-dev /dev/video3 Blur background: $ webcam-filters –input-dev /dev/video0 –output-dev /dev/video3 –background-blur 150 Dependencies Other than […]
Read more