Skip to content

EvangelosTikas/Python-Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hi there 👋

EvangelosTikas/EvangelosTikas is a ✨ special ✨ repository because its README.md (this file) appears on your GitHub profile.

Here are some ideas to get you started:

  • 🔭 I’m currently working on website!

  • 🌱 I’m currently learning C++, Python, HTML/CSS.

  • 👯 I’m looking to collaborate on a Machine-learning project

  • 🤔 I’m looking for help with Convolutional Neural Networks

  • 💬 Ask me about anything!

  • ⚡ Fun fact: Started from Physics, passed through astronomy and enden in Electronic Engineering and Programming -->

  • 📫 How to reach me:

facebook

instagram

linkedin

researchgate

Main applications, tests, tutorials and any exercises involved in MSc Electronics, Physics AUTh!


Python-Algorithms

A compelte series of various pyhton algorithms categorized from the web.

Plot class probabilities calculated by the VotingClassifier

Plot the class probabilities of the first sample in a toy dataset predicted by three different classifiers and averaged by the VotingClassifier.

First, three examplary classifiers are initialized (LogisticRegression, GaussianNB, and RandomForestClassifier) and used to initialize a soft-voting VotingClassifier with weights [1, 1, 5], which means that the predicted probabilities of the RandomForestClassifier count 5 times as much as the weights of the other classifiers when the averaged probability is calculated.

To visualize the probability weighting, we fit each classifier on the training set and plot the predicted class probabilities for the first sample in this example dataset.

Monkey theorem: A simple example

From the runestone academy we implement an algorithm showing the infinite monkey theorem in practice We test whether or not a random array of characters from the english alphabet is close to a chosen quote. First we define a function that generates a sequence of random characters from a to b including space. Secondly we create a function for printing the number of elements that are identical between two strings. Last but not least a main() function runs to indicate whether our program can generate a sequence close to a given string.

Example given: goalstring ='methinks it is a wiesel' (line from Shakespear)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published