Machine Learning is a method of data analysis that automates analytical model building.

Using algorithms that iteratively learn from data, machine learning allows computers to find hidden insights without being explicitly programmed where to look.


Definition of variance and deviation from the benchmark in statistics:

What is variance? The size of the spreadsheet displays a column for us.
What is the deviation from the benchmark? The distance between each data and the mean is deviation from the criterion.

In Machine learning the Variance, we can…


What is the difference between business intelligence, simulation and data mining?

Russell Acaph, the father of system thinking, has a sentence with the following theme:

You do not need to anticipate what you can control it.

No sanity predicts room temperature, but controls it.

Now in the organization's space, if we divide business variables into two categories of internal and external…


Fraud

What is Fraud?

In law, fraud is deliberate deception to secure unfair or unlawful gain, or to deprive a victim of a legal right. Fraud itself can be a civil wrong (i.e., a fraud victim may sue the fraud perpetrator to avoid the fraud or recover monetary compensation), a criminal wrong (i.e., a…


Data Science project (911 Calls Capstone Project)

My first complete project to solve problem: 911 Calls Capstone Project (Using Python — numpy, pandas, matplotlib and seaborn)

This is first complete project to solve problem of 911 calls Capstone.

When i spent the Online Course “ Python for Data Science and Machine Learning Bootcamp “ , author create a project and i must to solve it at below description:

Main…


Below a little code snippet for running class methods as background threads in Python. The run() method does some work forever and in this use case you want it to do that in the background. while the rest of the application continues it’s work.

import time

import threading


class TestThreading(object):
def __init__(self, interval=1):
self.interval = interval

thread = threading.Thread(target=self.run, args=())
thread.daemon = True
thread.start()

def run(self):
while True:
# More statements comes here
print(datetime.datetime.now().__str__() + ' : Start task in the background')

time.sleep(self.interval)

tr = TestThreading()
time.sleep(1)
print(datetime.datetime.now().__str__() + ' : First output')
time.sleep(2)
print(datetime.datetime.now().__str__() + ' : Second output')

Below is Output:

2018–08–18 13:39:59.021000 : Start task in the background

2018–08–18 13:40:00.036000 : First output

2018–08–18 13:40:00.036000 : Start task in the background

2018–08–18 13:40:01.036000 : Start task in the background

2018–08–18 13:40:02.036000 : Second output


First version of password generator for python projects

Easy to install and easier to use

Use python version bigger than 2.7

from sapass import sapass

print(sapass.generator.get_new_pass(15))

you can use below parameters for class inputs

  1. length Default length for password defined 8 character, by change this value you get new pass with another size.
  2. passType

passType = {'mix', #alphabet…

Hasan Sajedi

Python developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store