Python Scikit-Learn Decision Tree [Video + Blog]

Decision Trees are powerful and intuitive tools in your machine learning toolbelt. Decision trees are human-readable – in contrast to most other machine learning techniques. You can easily train a decision tree and show it to your supervisors who do not need to know anything about machine learning in order to understand how your model … Read more

Neural Networks with SKLearn MLPRegressor

Neural Networks have gained massive popularity in the last years. This is not only a result of the improved algorithms and learning techniques in the field but also of the accelerated hardware performance and the rise of General Processing GPU (GPGPU) technology. In this article, you’ll learn about the Multi-Layer Perceptron (MLP) which is one … Read more

How to Remove Control Characters from a String in Python?

Problem Formulation Given a string s. Create a new string based on s with all control characters such as ‘\n’ and ‘\t’ removed. What is a Control Character? A control character, also called non-printing character (NPC), is a character that doesn’t represent a written symbol. Examples are the newline character ‘\n’ and the tabular character … Read more

Python Delete File [Ultimate Guide]

Python Delete File To delete a file in Python, import the os module with import os and run os.remove(filename) in your script. The following code removes the file ‘file.dat’ from the current folder assuming the Python script resides in the same directory: Python Delete Files in Folder To delete a folder or directory with all … Read more