Tag: python

Home / python
Classify Hand-Written Digits Using Python and Convolutional Neural Networks
Post

Classify Hand-Written Digits Using Python and Convolutional Neural Networks

In this article, I will show you how to classify hand written digits from the MNIST database using the python programming language and a machine learning technique called Convolutional Neural Networks! If you prefer not to read this article and would like a video representation of it, you can check out the video below. It goes through everything in this article...

How to extract online data using Python
Post

How to extract online data using Python

Basic concepts about HTML, XPath, Scrapy, and spiders Euge Inzaugarat Jul 2 “I would be nice to have all the documents of the website” — One of her colleagues said “Yeah, that could give us a lot of information” — Said another colleague “Can you do the scraper?” — They both turn to look at her “Ehhhh… I could….” — She started mumbling “Perfect” — They...

Here’s how you can get some free speed on your Python code with Numba
Post

Here’s how you can get some free speed on your Python code with Numba

Easily turn your Python code into fast machine code “We can’t use Python, it’s too slow.” Anyone who’s worked with Python long enough has probably heard a statement like that at one point. The person who said it isn’t wrong either. Relative to many other programming languages, Python is slow. Benchmark game has some solid benchmarks for comparing...

Venkat Subramaniam: Kotlin And Python Are Fun, But Java Developers Are Semantically Aligned With The Future
Post

Venkat Subramaniam: Kotlin And Python Are Fun, But Java Developers Are Semantically Aligned With The Future

Whether he’s pacing the keynote stage in stocking feet, or taking you through “A Dozen Cool Things in JVM Languages,”Venkat Subramaniam leaves you with a sense of exhilaration about computer programming. His gift for inspirational analogy is rare, and even more so because it’s about software development. Venkat Subramaniam, an author, developer, and professor, is bullish...

Quickly Navigating Python Libraries With ctags
Post

Quickly Navigating Python Libraries With ctags

A tutorial for using ctags to efficiently navigate Python libraries for data scientists. As a machine learning practitioner, I often use open-source machine learning libraries, such as fastai and scikit-learn. After working with these libraries for awhile, you may reach the point where you want to do something that is not currently supported by a library (e.g.,...

Why Python is outpacing R and SQL in data science
Post

Why Python is outpacing R and SQL in data science

Data scientists are adopting specialized skillsets and programming languages to differentiate themselves in a growing field, according to Harnham. As the field of data science explodes, data professionals are increasingly using programming language Python to get work done, over other tools such as R and SQL, according to Harnham’s US Data & Analytics Salary Guide 2019, released this week....

Python Programable Robots with LEGO?
Post

Python Programable Robots with LEGO?

A few years back, I picked up a Lego Mindstorms kit when they went on sale. My family had fun building all of the robots that the kit provides instructions for. We also tried several of the designs people have published on-line. Mindstorms are comprised of Lego bricks, gears, shafts, wheels, and other various pieces similar to...

Programming languages: Python predicted to overtake C and Java in next 4 years
Post

Programming languages: Python predicted to overtake C and Java in next 4 years

Python’s ascent continues among software developers, bolstered by its usability compared with Java and C Open-source language Python is already one of the most popular programming languages among developers. It ranks in third place behind mainstays Java and C, according to programming language index Tiobe. But this month Python has clocked up a rating of...

Parallelising your Python Code
Post

Parallelising your Python Code

Swirl into a game-existencewhere you and your friend are miners. Yep, the yellow hat and shovel in hand. The task — Dig up a hole within a certain time to be able to extract some sparkly diamonds! So your friend suggests that you and they take turns digging… Let’s say it takes you 100 minutes to finish this task when done...

How To Make Python Faster
Post

How To Make Python Faster

Follow These Quick Wins To Make Python Run Faster Python is too slow, often people complain. But wait, there are many ways to improve its performance This article aims to highlight the key tips in a succinct manner. It is useful for anyone who wants to improve the performance of your python code. I reduced the...

Python Pro Tip: Start using Python defaultdict and Counter in place of dictionary
Post

Python Pro Tip: Start using Python defaultdict and Counter in place of dictionary

How you could use defaultdict and Counter to make your code short and readable Learning a language is easy. Whenever I start with a new language, I focus on a few things in below order, and it is a breeze to get started with writing code in any language. Operators and Data Types: +,-,int,float,str Conditional statements: if,else,case,switch...

Why learn… a statically typed language?
Post

Why learn… a statically typed language?

Most people’s first programming language is a dynamically typed, interpreted language – JavaScript, Python or Ruby. These are excellent languages to learn programming with, and you can be very productive with all three of them. But there’s a separate category of languages in widespred use: statically typed, compiled languages – C, Go, Java, C# and...

Developing Python application: Virtual environment
Post

Developing Python application: Virtual environment

Nowadays Python is everywhere — academics, data science, machine learning, enterprise application, web application, scripting you name it python is everywhere. Whatever you do, python is there either to help you or give you a headache. Let us say, you have learnt python programming and ready to use to develop applications that wow your future employers and...

Explain Python classes and objects to my nephew (+advanced use)
Post

Explain Python classes and objects to my nephew (+advanced use)

It is common secret that Python programming language has a solid claim to being the fastest-growing major programming language witnessing an extraordinary growth in the last five years, as seen by Stack Overflow traffic. Based on data describing the Stack Overflow question views which go to late 2011, the growth of Python relative to five other major...

How to run Python in R
Post

How to run Python in R

Learn how to run Python code inside an R script using the reticulate R package As much as I love R, it’s clear that Python is also a great language—both for data science and general-purpose computing. And there can be good reasons an R user would want to do some things in Python. Maybe it’s a great...