Algorithm for Cutting Stock Problem using Google OR-Tools

Cutting Stock Problem Cutting Stock Problem (CSP) deals with planning the cutting of items (rods / sheets) from given stock items (which are usually of fixed size). Quick Usage This is how CSP Tools looks in action. Click CSP Tool to use it Libraries Quick Start Install Pipenv, if not already installed $ pip3 install –user pipenv Clone this project and install packages $ git clone https://github.com/emadehsan/csp $ cd csp $ pipenv install # activate env $ pipenv shell Run […]

Read more

Python’s filter(): Extract Values From Iterables

Python’s filter() is a built-in function that allows you to process an iterable and extract those items that satisfy a given condition. This process is commonly known as a filtering operation. With filter(), you can apply a filtering function to an iterable and produce a new iterable with the items that satisfy the condition at hand. In Python, filter() is one of the tools you can use for functional programming. In this tutorial, you’ll learn how to: Use Python’s filter() […]

Read more

A simple CLI tool for tracking Pikud Ha’oref alarms

Pikud Ha’oref Alarm Tracking Polls the unofficial API endpoint every second for incoming alarms. Prints active alarms as they occur. Prints routine messages once every 5 minutes by default. Install Pip The easiest way to install is from PyPI with pip: $ pip install alarmpy You can then run the alarmpy executable directly: $ alarmpy –help Pipenv For development usage it’s recommended to clone the git repo and use pipenv: $ git clone https://github.com/yuvadm/alarmpy $ cd alarmpy $ pipenv sync […]

Read more

A probabilistic gradient boosting framework in Python

PGBM Probabilistic Gradient Boosting Machines (PGBM) is a probabilistic gradient boosting framework in Python based on PyTorch, developed by Airlab in Amsterdam. It provides the following advantages over existing frameworks: Probabilistic regression estimates instead of only point estimates. Auto-differentiation of custom loss functions. Native GPU-acceleration. It is aimed at users interested in solving large-scale tabular probabilistic regression problems, such as probabilistic time series forecasting. For more details, read our paper or check out the examples. Installation Run pip install pgbm […]

Read more

A deep learning framwork dedicated to side-channel attacks

SCAAML SCAAML (Side Channel Attacks Assisted with Machine Learning) is a deep learning framwork dedicated to side-channel attacks. It is written in python and run on top of TensorFlow 2.x. Available compoments scaaml/: The SCAAML framework code. Its used by the various tools. scaaml_intro/: A Hacker Guide To Deep Learning Based Side Channel Attacks.Code, dataset and models used in our step by step tutorial on how to use deep-learning to perform AES side-channel attacks in practice. Install Dependencies To use […]

Read more

Open-Source Toolkit for End-to-End Speech Recognition leveraging PyTorch-Lightning

Openspeech Openspeech provides reference implementations of various ASR modeling papers and three languages recipe to perform tasks on automatic speech recognition. We aim to make ASR technology easier to use for everyone. Openspeech is backed by the two powerful libraries — PyTorch-Lightning and Hydra.Various features are available in the above two libraries, including Multi-GPU and TPU training, Mixed-precision, and hierarchical configuration management. Get Started We use Hydra to control all the training configurations.If you are not familiar with Hydra we […]

Read more

An easy-to-use library for R&D at the intersection of Deep Learning on Graphs

Graph4NLP Graph4NLP is an easy-to-use library for R&D at the intersection of Deep Learning on Graphs and Natural Language Processing (i.e., DLG4NLP). It provides both full implementations of state-of-the-art models for data scientists and also flexible interfaces to build customized models for researchers and developers with whole-pipeline support. Built upon highly-optimized runtime libraries including DGL , Graph4NLP has both high running efficiency and great extensibility. The architecture of Graph4NLP is shown in the following figure, where boxes with dashed lines […]

Read more

Command line driven CI frontend and development task automation tool

tox At its core tox provides a convenient way to run arbitrary commands in isolated environments to serve as a single entry point for build, test and release activities. Example: run tests with Python 3.7 and Python 3.8 tox is mainly used as a command line tool and needs a tox.ini or a tool.tox section in pyproject.toml containingthe configuration. To test a simple project that has some tests, here is an example with a tox.ini in the root of the […]

Read more

A Python DB API and SQLAlchemy dialect for querying non-SQL resources like APIs

shillelagh Shillelagh is a Python DB API and SQLAlchemy dialect for querying non-SQL resources like APIs and files. You can use it to write queries like this: INSERT INTO “csv:///path/to/file.csv” SELECT time, chance_of_rain FROM “https://api.weatherapi.com/v1/history.json?key=XXX&q=London” WHERE strftime(‘%Y-%m-%d’, time) IN ( SELECT day FROM “https://docs.google.com/spreadsheets/d/1_rN3lm0R_bU3NemO0s9pbFkY5LQPcuy1pscv8ZXPtg8/edit#gid=2064361835” ) The query above reads holidays from a Google Sheet, uses the days to get weather data from WeatherAPI, and writes the change of rain at each hour of the holidays into a (pre-existing) CSV file. […]

Read more
1 604 605 606 607 608 919