Machine Learning part 1: introduction

Machine Learning part 1: introduction

what is it? wikipaedia defines machine learning as: _the scientific study of algorithms and statistical models that computer systems use to progressively improve their performance 📈 on a specific task. Machine learning algorithms build a mathematical model of sample data, known as “training data”, in order to make predictions or decisions without being explicitly programmed… Continue Reading Machine Learning part 1: introduction

Checking For Prime

Checking For Prime

prime numbers are surprisingly easy to check for. to check if a number is prime, we divide it by it’s factors. 1 is not prime

we take all numbers from 2 to the num and we start dividing by 2, 3, 4, 5, … but really we need only to go to half the… Continue Reading Checking For Prime

Reviving Bertrand Russell Through Python

Reviving Bertrand Russell Through Python

famous authors are praised, respected, admired and missed due to their works. after reading all the titles of an excellent author, one is left wishing for more. curiously enough we now have the ability to produce more books that fit in the literary style, depth and topic tackling techniques of writers. perfection in this field… Continue Reading Reviving Bertrand Russell Through Python

how to create your own DSL(Domain Specific Language) in python

how to create your own DSL(Domain Specific Language) in python

Sometimes you need more than a cli program. You need more flexibility and control. A Domain Specific Language (DSL) is the right fit for specialised tasks. This post shows how you can build your own. Some rough notes/planning :

the code

you mustĀ  modify it to read from file last words it might… Continue Reading how to create your own DSL(Domain Specific Language) in python

venv usage on windows, activate and deactivate

venv usage on windows, activate and deactivate

go on to your project root directory first create a virtual environment with syntax python3 -m venv <env-name>

a folder called niceproject will be automatically cd into <projectname>

then in the Scripts folder

then just type

it will activate as there is an activate.bat in the Scripts folder pip install what… Continue Reading venv usage on windows, activate and deactivate