Python News: What’s New From June 2021?

If you want to get up to speed on what happened in the world of Python in June 2021, then you’ve come to the right place to get your news! June was a month of change. Ewa Jodlowska, the Executive Director of the Python Software Foundation (PSF), announced her departure after serving for ten years, and the PSF Board of Directors gained three new directors. Let’s dive into the biggest Python news from the past month! Free Bonus: 5 Thoughts […]

Read more

A simple start with Natural Language Processing!

This article was published as a part of the Data Science Blogathon Introduction to NLP: After I got acquainted with Machine learning concepts, I was wary of venturing into NLP. To me, NLP was a subject area posing a complicated outlook. But after my first encounter with it, I have come to realize that though it is hard to master it, it is easy to follow the concepts. I am presenting some basic NLP concepts and their work. NLP or Natural […]

Read more

FastText vs. Word2vec: A Quick Comparison

One of the questions that often comes up is what’s the difference between fastText and Word2Vec? Aren’t they both the same? Yes and no. They are conceptually the same, but there is a minor difference—fastText operates at a character level but Word2Vec operates at a word level. Why this difference? Before we dive into fastText , let’s quickly recap what Word2Vec is. With Word2Vec, we train a neural network with a single hidden layer to predict a target word based on its context (neighboring words). The assumption […]

Read more

Visual analysis and diagnostic tools to facilitate machine learning model selection

Yellowbrick Visual analysis and diagnostic tools to facilitate machine learning model selection. What is Yellowbrick? Yellowbrick is a suite of visual diagnostic tools called “Visualizers” that extend the scikit-learn API to allow human steering of the model selection process. In a nutshell, Yellowbrick combines scikit-learn with matplotlib in the best tradition of the scikit-learn documentation, but to produce visualizations for your machine learning workflow! For complete documentation on the Yellowbrick API, a gallery of available visualizers, the contributor’s guide, tutorials […]

Read more

Deep Reinforcement Learning for Smart Cities

smart-cities-drl Urban mobility simulations with Python3, RLlib (Deep Reinforcement Learning) and Mesa (Agent-based modeling) Documentation RLlib: https://docs.ray.io/en/master/rllib.html Mesa: https://mesa.readthedocs.io/en/stable/ Installation Clone repository and install dependencies. git clone [email protected]:eescriba/smart-cities-drl.git cd smart-cities-drl python3 -m venv venv source env/bin/activate pip install -r requirements.txt Training Train environments in Jupyter notebooks with RLlib. WasteNet SmartCab Simulations Run and visualize environments with Mesa. mesa runserver src/[env_name] GitHub https://github.com/eescriba/smart-cities-drl    

Read more

A microservice written in Python which detects nudity in images and videos

py-nudec py-nudec (python nude detector) is a microservice, which scans all the images and videos from the multipart/form-data request payload and sends a response with a boolean value which indicates if all content has passed the checks. This service uses NudeNet created by notAI-tech Configuration Initialize a virtual environment using virtualenv and start it # Install virtualenv pip3 install virtualenv # Create a virtual environment py -m virtualenv venv # Activate virtual environment source venv/scripts/activate Install all required packages pip3 […]

Read more

Neural Nets for Nudity Classification, Detection and selective censoring

NudeNet NudeNet: Neural Nets for Nudity Classification, Detection and selective censoring. Classifier classes: class name Description safe Image/Video is not sexually explicit unsafe Image/Video is sexually explicit Default Detector classes: class name Description EXPOSED_ANUS Exposed Anus; Any gender EXPOSED_ARMPITS Exposed Armpits; Any gender COVERED_BELLY Provocative, but covered Belly; Any gender EXPOSED_BELLY Exposed Belly; Any gender COVERED_BUTTOCKS Provocative, but covered Buttocks; Any gender EXPOSED_BUTTOCKS Exposed Buttocks; Any gender FACE_F Female Face FACE_M Male Face COVERED_FEET Covered Feet; Any gender EXPOSED_FEET Exposed […]

Read more

Pyinfra automates infrastructure super fast at massive scale

pyinfra pyinfra automates/provisions/manages/deploys infrastructure super fast at massive scale. It can be used for ad-hoc command execution, service deployment, configuration management and more. Core design features include: 🚀 Super fast execution over thousands of hosts with predictable performance. 🚨 Instant debugging with stdout & stderr output on error or as required (-v|-vv|-vvv). 📦 Extendable with any Python package as configured & written in standard Python. 💻 Agentless execution against SSH/Docker/subprocess/winrm hosts. ❗️ Two stage process that enables –dry runs before […]

Read more

Transform Pydantic Models into Streamlit UI components

Streamlit Pydantic Transform Pydantic Models into Streamlit UI components Streamlit-pydantic makes it easy to deal with Pydantic objects within Streamlit. It allows to directly generate Input as well as Output UI components based on a Pydantic models. Getting Started Installation Requirements: Python 3.6+. pip install streamlit-pydantic Usage Streamlit-pydantic provides the pydantic_input and pydantic_output methods to render input/output UI components from Pydantic models. Those methods can be easily embedded into any streamlit script. For example: Create a script (my_script.py) with a […]

Read more
1 603 604 605 606 607 972