Write Pythonic and Clean Code With namedtuple

Python’s collections module provides a factory function called namedtuple(), which is specially designed to make your code more Pythonic when you’re working with tuples. With namedtuple(), you can create immutable sequence types that allow you to access their values using descriptive field names and the dot notation instead of unclear integer indices. If you have some experience using Python, then you know that writing Pythonic code is a core skill for Python developers. In this tutorial, you’ll level up that […]

Read more

A rotation-equivariant GNN for learning from biomolecular structure

Geometric Vector Perceptron Implementation of equivariant GVP-GNNs as described in Learning from Protein Structure with Geometric Vector Perceptrons by B Jing, S Eismann, P Suriana, RJL Townshend, and RO Dror. This repository serves two purposes. If you would like to use the GVP architecture for structural biology tasks, we provide building blocks for models and data pipelines. If you are specifically interested in protein design as described in the paper, we provide scripts for training and testing models. Note: This […]

Read more

Deep Face Detection Library in TensorFlow for Python

RetinaFace RetinaFace is the face detection module of insightface project. The original implementation is mainly based on mxnet. Then, its tensorflow based re-implementation is published by Stanislas Bertrand. This repo is heavily inspired from the study of Stanislas Bertrand. Its source code is simplified and it is transformed to pip compatible but the main structure of the reference model and its pre-trained weights are same. Installation The easiest way to install retinaface is to download it from pypi. pip install […]

Read more

A Pancakeswap v2 trading client with limit orders and much more

Pancakeswap v2 trading client A Pancakeswap trading client (and bot) with limit orders, stop-loss, custom gas strategies, a GUI and much more. If you have any questions or inquiries, you can contact me via telegram: aviddot Check out the demo of my Pancakeswap sniping bot: https://github.com/aviddot/Pancakeswap-sniping-bot-demo Prerequisites An ethereum/bsc address A Windows machine Not sure whether needed anymore: Visual C++ build tools (www.visualstudio.microsoft.com/visual-cpp-build-tools/) Getting started Read prerequisites Download the latest release or download “configfile.py” and “pancakeswap_bot.exe” from the repository. Open […]

Read more

An unofficial PyTorch implementation of a federated learning algorithm

Federated Averaging (FedAvg) in PyTorch An unofficial implementation of FederatedAveraging (or FedAvg) algorithm proposed in the paper Communication-Efficient Learning of Deep Networks from Decentralized Data in PyTorch. (implemented in Python 3.9.2.) Implementation points Exactly implement the models (‘2NN’ and ‘CNN’ mentioned in the paper) to have the same number of parameters written in the paper. 2NN: TwoNN class in models.py; 199,210 parameters CNN: CNN class in models.py; 1,663,370 parameters Exactly implement the non-IID data split. Each client has at least […]

Read more

Connecting Language and Vision for Natural Language-Based Vehicle Retrieval

AI City 2021 The 1st Place Submission to AICity Challenge 2021 Natural Language-Based Vehicle Retrieval Track (Alibaba-UTS submission) We have two codebases. For the final submission, we conduct the feature ensemble, where features are from two codebases. Part One is at here: https://github.com/ShuaiBai623/AIC2021-T5-CLV Part Two is at here: https://github.com/layumi/NLP-AICity2021 Prepare Preprocess the dataset to prepare frames, motion maps, NLP augmentation scripts/extract_vdo_frms.py is a Python script that is used to extract frames. scripts/get_motion_maps.py is a Python script that is used to […]

Read more

Unsupervised technique to Glossary and Definition Extraction

Automatic-Glossary-Generation The projects lets you extract glossary words and their definitions from a given piece of text automatically using NLP techniques Code Files GPT2-DefinitionModel.ipynb – GPT-2 model for definition generation. Data_Generator.ipynb – Data Scraper from GoodReads and GradeSaver Definition_Extraction.ipynb – WordNet model for definition generation. Glossary_Extraction.ipynb – Chinking strategy pipeline for selection of glossary terms. GitHub https://github.com/prakhar21/Automatic-Glossary-Generation    

Read more

Stacks and Queues: Selecting the Ideal Data Structure

There are a variety of ways for storing and managing data in your program and the choice of the right data structure has an effect on the readability of your code, ease of writing, and performance. Python has a wide selection of built-in mechanisms that meet most of your data structure needs. This course introduces you to three types of data structures: stacks, queues, and priority queues. There are multiple types and classes for all of these data structures and […]

Read more

Implementation of GGB color space with python

GGB Color Space This script is implementation of GGB color space from Development of a Robust Algorithm for Detection of Nuclei and Classification of White Blood Cells in Peripheral Blood Smear Image Dependencies $ sudo pip install -r requirements.txt How to Use $ python ggb.py –input Result Leukocytes Fundus Car GitHub https://github.com/reshalfahsi/ggb    

Read more
1 643 644 645 646 647 920