A tool for modeling infectious diseases with python

epispot A Python package for the mathematical modeling of infectious diseases via compartmental models. Originally designed for epidemiologists, epispot can be adapted for almost any type of modeling scenario. Features The epispot package currently only supports compartmental models, thoughwe plan to expand the package to work for stochastic agent-based and spatialmodels as well. Currently, epispot offers the following: Quick compilation of compartmental models with the following compartments: Susceptible Infected Recovered Removed Exposed Dead Critical Hospitalized Custom-defined compartments for research Built-in […]

Read more

Keep CALM and Improve Visual Feature Attribution

calm Keep CALM and Improve Visual Feature Attribution Abstract The class activation mapping, or CAM, has been the cornerstone of feature attribution methods for multiple vision tasks. Its simplicity and effectiveness have led to wide applications in the explanation of visual predictions and weakly-supervised localization tasks. However, CAM has its own shortcomings. The computation of attribution maps relies on ad-hoc calibration steps that are not part of the training computational graph, making it difficult for us to understand the real […]

Read more

Interact with Replit remotely with the Replit CLI

Replit CLI Interact with Replit remotely with the Replit CLI. pip install repl-cli Welcome to Replit CLI! With the Replit CLI Application, you can work with your repls locally, including clone, pull, and push, the core features of the CLI. The full list of features includes- PS C:> replit Usage: replit [OPTIONS] COMMAND [ARGS]… Options: –install-completion [bash|zsh|fish|powershell|pwsh] Install completion for the specified shell. –show-completion [bash|zsh|fish|powershell|pwsh] Show completion for the specified shell, to copy it or customize the installation. –help Show […]

Read more

A simple script which logs the CPU and RAM usage of the submitted job

ClusterMonitor A very simple python script which monitors and records the CPU and RAM consumption of submitted cluster jobs. Usage To start recording use the cpu_ram_log.py script. This script requires 3 arguments: -u which corresponds to your username. -o which specifies the output file (in tsv format) –interval which specifies the time (in seconds) over which the CPU and RAM usage gets averaged Example: python cpu_ram_log.py -u nickhir -o cpu_ram.log –interval 5 The script can simply be included in your […]

Read more

A wrapper around pytest for assessing flakiness and runtime regressions

bubblewrap a wrapper around pytest for assessing flakiness and runtime regressions Local Setup This project uses Python3.9, pip to manage dependencies, and runs in a virtual environment. Install with the following: # create + activate venv + install dependencies # see docs: https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/ $ python3 -m pip install –user virtualenv $ python3 -m venv env $ source env/bin/activate $ pip install -r requirements.txt # note: to deactivate venv, use $ deactivate Code Formatting This project uses Black for code formatting: […]

Read more

Advanced extended command line tool for Django

mirage-django-lts mirage ~ ♪ extended django admin or manage.py command. Installing Mirage with Pipenv is recommended. pipenv install -d mirage-django-lts If you don’t use pipenv, you can install it with pip. pip install mirage-django-lts You can build this package manually. make before_node make build_all Usage: mg [action] option mg [action]:[subaction] option [Create Project] new Create a new Django project. new:react Create a new Django API project with React.js front-end. new:ng Create a new Django API project with Angular. –nebular Create […]

Read more

A relatively simple user interface in pyqt5 for UNIX systems

scrcpy-pyqtgui A relatively simple user interface in pyqt5 for UNIX systems Requirements: You can install them with sudo apt-get install scrcpy python3 python3-pip adb pip3 install PyQt5 Usage To run the program you can use the following command in the terminal inside the folder python3 main.py GitHub https://github.com/hayukimori/scrcpy-pyqtgui    

Read more

Working With Linear Systems in Python With scipy.linalg

Linear algebra is widely used across a variety of subjects, and you can use it to solve many problems once you organize the information using concepts like vectors and linear equations. In Python, most of the routines related to this subject are implemented in scipy.linalg, which offers very fast linear algebra capabilities. In particular, linear systems play an important role in modeling a variety of real-world problems, and scipy.linalg provides tools to study and solve them in an efficient way. […]

Read more

Use a powerful CNN to identify faces in images with python

FaceFinder There is lots of face recognition software out there on github, but most of it focuses on speed over accuracy and uses models such as ‘hog’. However, FaceFinder is one of the most powerful face recognition programs which uses a very large CNN to make accurate predictions. Here’s why: Several modern technologies make use of face recognition and its importance in the world is constantly increasing. You shouldn’t have to train a full neural net of your own every […]

Read more

Rethinking Space-Time Networks with Improved Memory Coverage for Efficient Video Object Segmentation

STCN We present Space-Time Correspondence Networks (STCN) as the new, effective, and efficient framework to model space-time correspondences in the context of video object segmentation. STCN achieves SOTA results on multiple benchmarks while running fast at 20+ FPS without bells and whistles. Its speed is even higher with mixed precision. Despite its effectiveness, the network itself is very simple with lots of room for improvement. See the paper for technical details. A Gentle Introduction There are two main contributions: STCN […]

Read more
1 606 607 608 609 610 921