{"id":579,"date":"2020-04-20T18:54:28","date_gmt":"2020-04-20T13:24:28","guid":{"rendered":"https:\/\/dphi.tech\/?p=579"},"modified":"2022-11-15T15:35:58","modified_gmt":"2022-11-15T10:05:58","slug":"some-essential-hacks-and-tricks-for-machine-learning-with-python","status":"publish","type":"post","link":"https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/","title":{"rendered":"Some Essential Hacks and Tricks for Machine Learning with Python"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">We describe some essential hacks and tricks for practicing machine learning with Python.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong><em>\u201cI am a student of computer science\/engineering. How do I get into the field of machine learning\/deep learning\/AI?\u201d<\/em><\/strong><\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">It\u2019s never been easier to get started with machine learning. In addition to structured MOOCs, there is also a huge number of incredible, free resources available around the web. Here are just a few that have helped me:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Start with some cool videos on YouTube. Read a couple of good books or articles. For example, have you read \u201c<a rel=\"noreferrer noopener\" href=\"https:\/\/www.goodreads.com\/book\/show\/24612233-the-master-algorithm\" target=\"_blank\">The Master Algorithm: How the Quest for the Ultimate Learning Machine Will Remake Our World<\/a>\u201d? And I can guarantee you\u2019ll fall in love with&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/www.r2d3.us\/visual-intro-to-machine-learning-part-1\/\" target=\"_blank\">this cool interactive page about machine learning?<\/a><\/li><li>Learn to clearly differentiate between buzzwords first \u2014&nbsp;<em>machine learning, artificial intelligence, deep learning, data science, computer vision, robotics<\/em>. Read or listen to the talks, given by experts, on each of them.&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.youtube.com\/watch?v=tKa0zDDDaQk\" target=\"_blank\">Watch this amazing video by Brandon Rohrer<\/a>, an influential data scientist. Or this&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.youtube.com\/watch?v=Ura_ioOcpQI\" target=\"_blank\">video about the clear definition and difference of various roles&nbsp;<\/a>associated with data science.<\/li><li>Have your goal clearly set for what you want to learn. And then, go and take that Coursera course. Or take the&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.coursera.org\/specializations\/machine-learning\" target=\"_blank\">other one from Univ. of Washington<\/a>, which is pretty good too.<\/li><li><strong>Follow some good blogs<\/strong>:&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.kdnuggets.com\/\" target=\"_blank\">KDnuggets<\/a>,&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/www.markmeloon.com\/\" target=\"_blank\">Mark Meloon\u2019s blog about data science career<\/a>,&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/brohrer.github.io\/blog.html\" target=\"_blank\">Brandon Rohrer\u2019s blog<\/a>,&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/blog.openai.com\/\" target=\"_blank\">Open AI\u2019s blog about their research<\/a>, and of course,&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/heartbeat.fritz.ai\/\" target=\"_blank\">Heartbeat<\/a><\/li><li>If you are enthusiastic about taking online MOOCs,&nbsp;<a href=\"https:\/\/aiplanet.com\/blog\/how-to-choose-effective-courses-for-machine-learning-and-data-science\/\" target=\"_blank\" rel=\"noreferrer noopener\">check out this article for guidance<\/a>.<\/li><li>Most of all, develop a feel for it. Join some good social forums, but&nbsp;<strong>resist the temptation to latch onto sensationalized headlines and news bytes<\/strong>&nbsp;posted. Do your own reading, understand what it is and what it is not, where it might go, and what possibilities it can open up. Then sit back and think about how you can apply machine learning or imbue data science principles into your daily work. Build a simple&nbsp;<a rel=\"noreferrer noopener\" target=\"_blank\" href=\"https:\/\/heartbeat.fritz.ai\/5-regression-loss-functions-all-machine-learners-should-know-4fb140e9d4b0\">regression model<\/a>&nbsp;to predict the cost of your next lunch or download your electricity usage data from your energy provider and do a simple time-series plot in Excel to discover some pattern of usage. And after you are thoroughly enamored with machine learning, you can watch this video.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-embed aligncenter is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"A Friendly Introduction to Machine Learning\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/IpGxLWOIZy4?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"a08e\">Is Python a good language of choice for Machine Learning\/AI?<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Familiarity and moderate expertise in at least one high-level programming language is useful for beginners in machine learning. Unless you are a Ph.D. researcher working on a purely theoretical proof of some complex algorithm, you are expected to mostly use the existing machine learning algorithms and apply them in solving novel problems. This requires you to put on a programming hat.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There\u2019s a lot of debate on the \u2018<em>best language for data science<\/em>\u2019 (in fact, here\u2019s a take on why&nbsp;<a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/heartbeat.fritz.ai\/why-data-scientists-should-start-learning-swift-66c3643e0d0d\">data scientists should learn Swift<\/a>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">While the debate rages on, grab a coffee and&nbsp;<a href=\"https:\/\/medium.freecodecamp.org\/which-languages-should-you-learn-for-data-science-e806ba55a81f\" target=\"_blank\" rel=\"noreferrer noopener\">read this insightful article to get an idea and see your choices<\/a>. Or, check out&nbsp;<a href=\"https:\/\/www.kdnuggets.com\/2017\/09\/python-vs-r-data-science-machine-learning.html\" target=\"_blank\" rel=\"noreferrer noopener\">this post on KDnuggets<\/a>. For now, it\u2019s widely believed that Python helps developers to be more productive from development to deployment and maintenance. Python\u2019s syntax is simpler and of a higher level when compared to Java, C, and C++. It has a vibrant community, open-source culture, hundreds of high-quality libraries focused on machine learning, and a huge support base from big names in the industry (e.g. Google, Dropbox, Airbnb, etc.).<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>This article will focus on some essential hacks and tricks in Python focused on machine learning<\/strong>.<\/p><\/blockquote>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"9451\">Fundamental Libraries to know and master<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">There are few core Python packages\/libraries you need to master for practicing machine learning effectively. Very brief description of those are given below,<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"6be6\">Numpy<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Short for&nbsp;<a href=\"http:\/\/numpy.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Numerical Python<\/a>, NumPy is the fundamental package required for high performance scientific computing and data analysis in the Python ecosystem. It\u2019s the foundation on which nearly all of the higher-level tools such as&nbsp;<a href=\"https:\/\/pandas.pydata.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Pandas<\/a>&nbsp;and&nbsp;<a href=\"http:\/\/scikit-learn.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">scikit-learn<\/a>&nbsp;are built.&nbsp;<a href=\"https:\/\/www.tensorflow.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">TensorFlow<\/a>&nbsp;uses NumPy arrays as the fundamental building block on top of which they built their Tensor objects and graphflow for deep learning tasks. Many NumPy operations are implemented in C, making them super fast. For data science and modern machine learning tasks, this is an invaluable advantage.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/aiplanet.com\/blog\/wp-content\/uploads\/2020\/04\/NM_1.jpeg\" alt=\"\" class=\"wp-image-580\"\/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"590e\">Pandas<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This is the most popular library in the scientific Python ecosystem for doing general-purpose data analysis. Pandas is built upon Numpy array thereby preserving the feature of fast execution speed and offering many&nbsp;<strong>data engineering features<\/strong>&nbsp;including:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Reading\/writing many different data formats<\/li><li>Selecting subsets of data<\/li><li>Calculating across rows and down columns<\/li><li>Finding and filling missing data<\/li><li>Applying operations to independent groups within the data<\/li><li>Reshaping data into different forms<\/li><li>Combing multiple datasets together<\/li><li>Advanced time-series functionality<\/li><li>Visualization through Matplotlib and&nbsp;<a href=\"https:\/\/seaborn.pydata.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Seaborn<\/a><\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/aiplanet.com\/blog\/wp-content\/uploads\/2020\/04\/NM_2-1-1024x717.png\" alt=\"\" class=\"wp-image-582\"\/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"b013\">Matplotlib and Seaborn<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Data visualization and storytelling with your data are essential skills that every data scientist needs to communicate insights gained from analyses effectively to any audience out there. This is equally critical in pursuit of machine learning mastery too as often in your ML pipeline, you need to perform exploratory analysis of the data set before deciding to apply particular ML algorithm.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Matplotlib is the most widely used 2-D Python visualization library equipped with a dazzling array of commands and interfaces for producing publication-quality graphics from your data.&nbsp;<a rel=\"noreferrer noopener\" target=\"_blank\" href=\"https:\/\/heartbeat.fritz.ai\/introduction-to-matplotlib-data-visualization-in-python-d9143287ae39\">Here is an amazingly detailed and rich article<\/a>&nbsp;on getting you started on Matplotlib.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/aiplanet.com\/blog\/wp-content\/uploads\/2020\/04\/NM_3-1024x816.png\" alt=\"\" class=\"wp-image-583\"\/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Seaborn is another great visualization library&nbsp;<strong>focused on statistical plotting<\/strong>. It\u2019s worth learning for machine learning practitioners. Seaborn provides an API (with flexible choices for plot style and color defaults) on top of Matplotlib, defines simple high-level functions for common statistical plot types, and integrates with the functionality provided by Pandas.&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.datacamp.com\/community\/tutorials\/seaborn-python-tutorial\" target=\"_blank\">Here is a great tutorial on Seaborn for beginners<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/aiplanet.com\/blog\/wp-content\/uploads\/2020\/04\/NM_4.png\" alt=\"\" class=\"wp-image-584\"\/><figcaption><strong>Example of Seaborn plots<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"564c\">Scikit-learn<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Scikit-learn is the most important general machine learning Python package you must master. It features various&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/en.wikipedia.org\/wiki\/Statistical_classification\" target=\"_blank\">classification<\/a>,&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/en.wikipedia.org\/wiki\/Regression_analysis\" target=\"_blank\">regression<\/a>, and&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/en.wikipedia.org\/wiki\/Cluster_analysis\" target=\"_blank\">clustering<\/a>&nbsp;algorithms, including&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/en.wikipedia.org\/wiki\/Support_vector_machine\" target=\"_blank\">support vector machines<\/a>,&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/en.wikipedia.org\/wiki\/Random_forests\" target=\"_blank\">random forests<\/a>,&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/en.wikipedia.org\/wiki\/Gradient_boosting\" target=\"_blank\">gradient boosting<\/a>,&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/en.wikipedia.org\/wiki\/K-means_clustering\" target=\"_blank\"><em>k<\/em>-means<\/a>, and&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/en.wikipedia.org\/wiki\/DBSCAN\" target=\"_blank\">DBSCAN<\/a>, and is designed to inter-operate with the Python numerical and scientific libraries&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/en.wikipedia.org\/wiki\/NumPy\" target=\"_blank\">NumPy<\/a>&nbsp;and&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/en.wikipedia.org\/wiki\/SciPy\" target=\"_blank\">SciPy<\/a>. It provides a range of supervised and unsupervised learning algorithms via a consistent interface. The vision for the library has a level of robustness and support required for use in production systems. This means a deep focus on concerns such as ease of use, code quality, collaboration, documentation, and performance.&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/scikit-learn.org\/stable\/tutorial\/basic\/tutorial.html\" target=\"_blank\">Look at this gentle introduction to machine learning vocabulary<\/a>&nbsp;as used in the Scikit-learn universe.&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/towardsdatascience.com\/machine-learning-with-python-easy-and-robust-method-to-fit-nonlinear-data-19e8a1ddbd49\" target=\"_blank\">Here is another article demonstrating a simple machine learning pipeline<\/a>&nbsp;method using Scikit-learn.<\/p>\n\n\n<blockquote>\n<p style=\"padding-left: 80px;\">Machine learning models don\u2019t have to live on servers or in the cloud \u2014 they can also live on your smartphone.&nbsp;<a class=\"cq gw jv jw jx jy\" href=\"https:\/\/www.fritz.ai\/product\/platform.html?utm_campaign=buildmodels2&amp;utm_source=heartbeat\" target=\"_blank\" rel=\"noopener noreferrer\">And Fritz AI has the tools to easily teach mobile apps to see, hear, sense, and think.<\/a><\/p>\n<\/blockquote>\n\n\n<h1 class=\"wp-block-heading\" id=\"2a17\">Some hidden gems of Scikit-learn<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Scikit-learn is a great package to master for machine learning beginners and seasoned professionals alike. However, even experienced ML practitioners may not be aware of all the hidden gems of this package which can aid in their task significantly. I am trying to list few of these relatively lesser known methods\/interfaces available in Scikit-learn.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Pipeline<\/em><\/strong>: This can be used to chain multiple estimators into one. This is useful as there is often a fixed sequence of steps in processing the data, for example feature selection, normalization and classification.&nbsp;<a href=\"http:\/\/scikit-learn.org\/stable\/modules\/pipeline.html\" target=\"_blank\" rel=\"noreferrer noopener\">Here is more info about it<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Grid-search<\/em><\/strong>: Hyper-parameters are parameters that are not directly learnt within estimators. In Scikit-learn they are passed as arguments to the constructor of the estimator classes. It is possible and recommended to search the hyper-parameter space for the best&nbsp;<a href=\"http:\/\/scikit-learn.org\/stable\/modules\/cross_validation.html#cross-validation\" target=\"_blank\" rel=\"noreferrer noopener\">cross validation<\/a>&nbsp;score. Any parameter provided when constructing an estimator may be optimized in this manner.&nbsp;<a href=\"http:\/\/scikit-learn.org\/stable\/modules\/grid_search.html#grid-search\" target=\"_blank\" rel=\"noreferrer noopener\">Read more about it here<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Validation curves<\/em><\/strong>: Every estimator has its advantages and drawbacks. Its generalization error can be decomposed in terms of bias, variance and noise. The&nbsp;<strong>bias<\/strong>&nbsp;of an estimator is its average error for different training sets. The&nbsp;<strong>variance<\/strong>&nbsp;of an estimator indicates how sensitive it is to varying training sets. Noise is a property of the data. It is very helpful to plot the influence of a single&nbsp;<a rel=\"noreferrer noopener\" target=\"_blank\" href=\"https:\/\/heartbeat.fritz.ai\/tuning-machine-learning-hyperparameters-40265a35c9b8\">hyperparameter<\/a>&nbsp;on the training score and the validation score to find out whether the estimator is overfitting or underfitting for some hyperparameter values.&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/scikit-learn.org\/stable\/modules\/learning_curve.html\" target=\"_blank\">Scikit-learn has a built-in method to help here<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/aiplanet.com\/blog\/wp-content\/uploads\/2020\/04\/NM_5-1024x366.png\" alt=\"\" class=\"wp-image-585\"\/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>One-hot encoding of categorial data<\/em><\/strong>: It is an extremely common data preprocessing task to transform input categorical features in one-in-k binary encodings for using in classification or prediction tasks (e.g. logistic regression with mixed numerical and text features). Scikit-learn offers&nbsp;<a href=\"http:\/\/scikit-learn.org\/stable\/modules\/preprocessing.html#encoding-categorical-features\" target=\"_blank\" rel=\"noreferrer noopener\">powerful yet simple methods<\/a>&nbsp;to accomplish this. They operate directly on Pandas dataframe or Numpy arrays thereby freeing the user to write any special map\/apply function for these transformations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Polynomial feature generation<\/em><\/strong>: For countless regression modeling tasks, often it is useful to add complexity to the model by considering nonlinear features of the input data. A simple and common method to use is polynomial features, which can get features\u2019 high-order and interaction terms.&nbsp;<a href=\"http:\/\/scikit-learn.org\/stable\/modules\/preprocessing.html#generating-polynomial-features\" target=\"_blank\" rel=\"noreferrer noopener\">Scikit-learn has a ready-made function<\/a>&nbsp;to generate such higher-order cross-terms from a given feature set and user\u2019s choice of highest degree of polynomial.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Dataset generators<\/em><\/strong>: Scikit-learn includes various random sample generators that can be used to build artificial datasets of controlled size and complexity.&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/scikit-learn.org\/stable\/datasets\/index.html#sample-generators\" target=\"_blank\">It has functions for classification, clustering, regression, matrix decomposition, and manifold testing.<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/aiplanet.com\/blog\/wp-content\/uploads\/2020\/04\/NM_6.png\" alt=\"\" class=\"wp-image-586\"\/><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"bb1d\">Practicing Interactive Machine Learning<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Project Jupyter was born out of the&nbsp;<a href=\"https:\/\/ipython.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">IPython Project<\/a>&nbsp;in 2014 and evolved rapidly to support interactive data science and scientific computing across all major programming languages. There is no doubt that it has left one of the biggest degrees of impact on how a data scientist can quickly test and prototype his\/her idea and showcase the work to peers and open-source community.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However,&nbsp;<strong>learning and experimenting with data become truly immersive when the user can interactively control the parameters of the model&nbsp;<\/strong>and see the effect (almost) real-time. Most of the common rendering in Jupyter are static.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>But you want more control,&nbsp;<strong>you want to change variables at the simple swipe of your mouse, not by writing a for-loop<\/strong>. What should you do? You can use&nbsp;<strong>IPython widget<\/strong>.<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Widgets are eventful python objects that have a representation in the browser, often as a control like a slider, text box, etc., through a front-end (HTML\/JavaScript) rendering channel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/towardsdatascience.com\/a-very-simple-demo-of-interactive-controls-on-jupyter-notebook-4429cf46aabd\" target=\"_blank\">this article<\/a>, I demonstrate a simple curve fitting exercise using basic widget controls. In a follow-up article, that is&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/towardsdatascience.com\/interactive-machine-learning-make-python-lively-again-a96aec7e1627\" target=\"_blank\">extended further in the realm of interactive machine learning techniques<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-embed aligncenter is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Interactive Linear Regression in Jupyter Notebook using Scikit-Learn\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/Renyy-GthOo?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n<blockquote>\n<p style=\"padding-left: 80px;\">Machine learning is rapidly moving closer to where data is collected \u2014 edge devices.&nbsp;<a class=\"cq gw jv jw jx jy\" href=\"https:\/\/www.fritz.ai\/newsletter?utm_campaign=fritzai-newsletter-scale6&amp;utm_source=heartbeat\" target=\"_blank\" rel=\"noopener noreferrer\">Subscribe to the Fritz AI Newsletter to learn more about this transition and how it can help scale your business.<\/a><\/p>\n<\/blockquote>\n\n\n<h1 class=\"wp-block-heading\" id=\"8c3b\">Deep Learning Frameworks (and courses to get you started)<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">This article gloss over some essential tips for jump-starting your journey to the fascinating world of machine learning with Python. It does not cover deep learning frameworks like&nbsp;<a href=\"https:\/\/www.tensorflow.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">TensorFlow<\/a>,&nbsp;<a href=\"https:\/\/keras.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">Keras<\/a>, or&nbsp;<a href=\"http:\/\/pytorch.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">PyTorch<\/a>&nbsp;as they merit deep discussion about themselves exclusively. You can read some great articles about them here but we may come back later with a dedicated discussion about these amazing frameworks.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/9-great-articles-about-tensorflow\" target=\"_blank\" rel=\"noreferrer noopener\">7 great articles on TensorFlow<\/a>&nbsp;(Datascience Central)<\/li><li><a href=\"https:\/\/www.datacamp.com\/community\/tutorials\/deep-learning-python\" target=\"_blank\" rel=\"noreferrer noopener\">Datacamp tutorial on neural nets and Keras example<\/a><\/li><li><a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2018\/02\/pytorch-tutorial\/\" target=\"_blank\" rel=\"noreferrer noopener\">AnalyticsVidhya tutorial on PyTorch<\/a><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You can also try the following,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.simplilearn.com\/deep-learning-course-with-tensorflow-training\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><em>Deep Learning Course (with TensorFlow) by SimpliLearn<\/em><\/strong><\/a>: This course has been crafted by industry experts and been aligned with the latest best practices. You will learn foundational concepts and the TensorFlow open source framework, implement the most popular deep learning architectures, and traverse layers of data abstraction to understand the power of data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.coursera.org\/specializations\/advanced-machine-learning-tensorflow-gcp\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Google\u2019s Cloud-based TensorFlow specialization (Coursera)<\/strong><\/a>: This 5-course specialization focuses on advanced machine learning topics using Google Cloud Platform where you will get hands-on experience optimizing, deploying, and scaling production ML models of various types in hands-on labs.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"69d6\">Summary<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks for reading this article. Machine learning is currently one of the most exciting and promising intellectual fields, with applications ranging from e-commerce to healthcare and virtually everything in between. There are hypes and hyperbole, but there is also solid research and best practices. If properly learned and applied, this field of study can bring immense intellectual and practical rewards to the practitioner and to her\/his professional task.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It\u2019s impossible to cover even a small fraction of machine learning topics in the space of one (or ten) articles. But hopefully, the current article has piqued your interest in the field and given you solid pointers on some of the powerful frameworks, already available in the Python ecosystem, to start your machine learning tasks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em><strong>Note:\u00a0<\/strong>T<em>his article was originally published on\u00a0<a href=\"https:\/\/heartbeat.fritz.ai\/some-essential-hacks-and-tricks-for-machine-learning-with-python-5478bc6593f2\">Heartbeat<\/a>, and kindly contributed to AI Planet (formerly DPhi) to spread the knowledge.<\/em><\/em><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong><em>Become a guide. Become a mentor.<\/em><\/strong><br><em>We at AI Planet (formerly DPhi), welcome you to share your experience in data science \u2013 be it your learning journey, experience while participating in Data Science Challenges, data science\u00a0projects, tutorials and anything that is related to Data Science. Your learnings could help a large number of aspiring data scientists!\u00a0Interested? Submit\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/docs.google.com\/forms\/d\/e\/1FAIpQLSdOMt4yfkgkWxWIkvQMuuJiwsc21mCV8IxPqGLhj1uZ6oLJ9Q\/viewform\" target=\"_blank\">here<\/a>.\u00a0<\/em><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>This article talks about some essential hacks and tricks for practicing machine learning with Python.<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[20,22,36,24],"class_list":["post-579","post","type-post","status-publish","format-standard","hentry","category-datascience","tag-datascience","tag-machine-learning","tag-pandas","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Some Essential Hacks and Tricks for Machine Learning with Python - AI Planet<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Some Essential Hacks and Tricks for Machine Learning with Python - AI Planet\" \/>\n<meta property=\"og:description\" content=\"This article talks about some essential hacks and tricks for practicing machine learning with Python.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/\" \/>\n<meta property=\"og:site_name\" content=\"AI Planet\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/aiplanet\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-20T13:24:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-15T10:05:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/aiplanet.com\/blog\/wp-content\/uploads\/2020\/04\/NM_1.jpeg\" \/>\n<meta name=\"author\" content=\"Dr. Tirthajyoti Sarkar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr. Tirthajyoti Sarkar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/some-essential-hacks-and-tricks-for-machine-learning-with-python\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/some-essential-hacks-and-tricks-for-machine-learning-with-python\\\/\"},\"author\":{\"name\":\"Dr. Tirthajyoti Sarkar\",\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/#\\\/schema\\\/person\\\/a92eab6344dcf1494fe7adf1d7650417\"},\"headline\":\"Some Essential Hacks and Tricks for Machine Learning with Python\",\"datePublished\":\"2020-04-20T13:24:28+00:00\",\"dateModified\":\"2022-11-15T10:05:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/some-essential-hacks-and-tricks-for-machine-learning-with-python\\\/\"},\"wordCount\":2283,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/some-essential-hacks-and-tricks-for-machine-learning-with-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/NM_1.jpeg\",\"keywords\":[\"datascience\",\"machine learning\",\"pandas\",\"python\"],\"articleSection\":[\"datascience\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/aiplanet.com\\\/blog\\\/some-essential-hacks-and-tricks-for-machine-learning-with-python\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/some-essential-hacks-and-tricks-for-machine-learning-with-python\\\/\",\"url\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/some-essential-hacks-and-tricks-for-machine-learning-with-python\\\/\",\"name\":\"Some Essential Hacks and Tricks for Machine Learning with Python - AI Planet\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/some-essential-hacks-and-tricks-for-machine-learning-with-python\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/some-essential-hacks-and-tricks-for-machine-learning-with-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/NM_1.jpeg\",\"datePublished\":\"2020-04-20T13:24:28+00:00\",\"dateModified\":\"2022-11-15T10:05:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/some-essential-hacks-and-tricks-for-machine-learning-with-python\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/aiplanet.com\\\/blog\\\/some-essential-hacks-and-tricks-for-machine-learning-with-python\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/some-essential-hacks-and-tricks-for-machine-learning-with-python\\\/#primaryimage\",\"url\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/NM_1.jpeg\",\"contentUrl\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/NM_1.jpeg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/some-essential-hacks-and-tricks-for-machine-learning-with-python\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Some Essential Hacks and Tricks for Machine Learning with Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/\",\"name\":\"AI Planet, Formerly DPhi\",\"description\":\"AI Planet (formerly DPhi) is a global ecosystem that aims to educate and empower individuals and organizations to build and utilize artificial intelligence (AI). With a community of over 300,000 AI specialists and enthusiasts, we offer a range of products and have helped drive innovative solutions for various industries. Our ultimate goal is to make AI education accessible to everyone and use AI to tackle important business and social challenges.\",\"publisher\":{\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/#organization\",\"name\":\"AI Planet, Formerly DPhi\",\"url\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/Size48-Large-1.png\",\"contentUrl\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/Size48-Large-1.png\",\"width\":48,\"height\":48,\"caption\":\"AI Planet, Formerly DPhi\"},\"image\":{\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/aiplanet\\\/\",\"https:\\\/\\\/www.instagram.com\\\/aiplanet_community\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/aiplanet\\\/\",\"https:\\\/\\\/www.youtube.com\\\/@aiplanet\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/#\\\/schema\\\/person\\\/a92eab6344dcf1494fe7adf1d7650417\",\"name\":\"Dr. Tirthajyoti Sarkar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/103a8654e5ff67495e6a4953adfb5caab2001a5e1e63aa2da54b5e0f16158812?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/103a8654e5ff67495e6a4953adfb5caab2001a5e1e63aa2da54b5e0f16158812?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/103a8654e5ff67495e6a4953adfb5caab2001a5e1e63aa2da54b5e0f16158812?s=96&d=mm&r=g\",\"caption\":\"Dr. Tirthajyoti Sarkar\"},\"description\":\"Dr. Tirthajyoti is an AI\\\/ML expert and has 16+ years of R&amp;D experience in power electronics, semiconductor technology development, and product innovation. He actively contributes to the Data Science community through his educational articles, talks etc. He is an open-source contributor and recently published a book \\\"Data Wrangling with Python\\\".\",\"url\":\"https:\\\/\\\/aiplanet.com\\\/blog\\\/author\\\/tirthajyoti\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Some Essential Hacks and Tricks for Machine Learning with Python - AI Planet","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/","og_locale":"en_US","og_type":"article","og_title":"Some Essential Hacks and Tricks for Machine Learning with Python - AI Planet","og_description":"This article talks about some essential hacks and tricks for practicing machine learning with Python.","og_url":"https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/","og_site_name":"AI Planet","article_publisher":"https:\/\/www.facebook.com\/aiplanet\/","article_published_time":"2020-04-20T13:24:28+00:00","article_modified_time":"2022-11-15T10:05:58+00:00","og_image":[{"url":"https:\/\/aiplanet.com\/blog\/wp-content\/uploads\/2020\/04\/NM_1.jpeg","type":"","width":"","height":""}],"author":"Dr. Tirthajyoti Sarkar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Dr. Tirthajyoti Sarkar","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/#article","isPartOf":{"@id":"https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/"},"author":{"name":"Dr. Tirthajyoti Sarkar","@id":"https:\/\/aiplanet.com\/blog\/#\/schema\/person\/a92eab6344dcf1494fe7adf1d7650417"},"headline":"Some Essential Hacks and Tricks for Machine Learning with Python","datePublished":"2020-04-20T13:24:28+00:00","dateModified":"2022-11-15T10:05:58+00:00","mainEntityOfPage":{"@id":"https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/"},"wordCount":2283,"commentCount":0,"publisher":{"@id":"https:\/\/aiplanet.com\/blog\/#organization"},"image":{"@id":"https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/#primaryimage"},"thumbnailUrl":"https:\/\/aiplanet.com\/blog\/wp-content\/uploads\/2020\/04\/NM_1.jpeg","keywords":["datascience","machine learning","pandas","python"],"articleSection":["datascience"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/","url":"https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/","name":"Some Essential Hacks and Tricks for Machine Learning with Python - AI Planet","isPartOf":{"@id":"https:\/\/aiplanet.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/#primaryimage"},"image":{"@id":"https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/#primaryimage"},"thumbnailUrl":"https:\/\/aiplanet.com\/blog\/wp-content\/uploads\/2020\/04\/NM_1.jpeg","datePublished":"2020-04-20T13:24:28+00:00","dateModified":"2022-11-15T10:05:58+00:00","breadcrumb":{"@id":"https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/#primaryimage","url":"https:\/\/aiplanet.com\/blog\/wp-content\/uploads\/2020\/04\/NM_1.jpeg","contentUrl":"https:\/\/aiplanet.com\/blog\/wp-content\/uploads\/2020\/04\/NM_1.jpeg"},{"@type":"BreadcrumbList","@id":"https:\/\/aiplanet.com\/blog\/some-essential-hacks-and-tricks-for-machine-learning-with-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/aiplanet.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Some Essential Hacks and Tricks for Machine Learning with Python"}]},{"@type":"WebSite","@id":"https:\/\/aiplanet.com\/blog\/#website","url":"https:\/\/aiplanet.com\/blog\/","name":"AI Planet, Formerly DPhi","description":"AI Planet (formerly DPhi) is a global ecosystem that aims to educate and empower individuals and organizations to build and utilize artificial intelligence (AI). With a community of over 300,000 AI specialists and enthusiasts, we offer a range of products and have helped drive innovative solutions for various industries. Our ultimate goal is to make AI education accessible to everyone and use AI to tackle important business and social challenges.","publisher":{"@id":"https:\/\/aiplanet.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/aiplanet.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/aiplanet.com\/blog\/#organization","name":"AI Planet, Formerly DPhi","url":"https:\/\/aiplanet.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/aiplanet.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/aiplanet.com\/blog\/wp-content\/uploads\/2022\/11\/Size48-Large-1.png","contentUrl":"https:\/\/aiplanet.com\/blog\/wp-content\/uploads\/2022\/11\/Size48-Large-1.png","width":48,"height":48,"caption":"AI Planet, Formerly DPhi"},"image":{"@id":"https:\/\/aiplanet.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/aiplanet\/","https:\/\/www.instagram.com\/aiplanet_community\/","https:\/\/www.linkedin.com\/company\/aiplanet\/","https:\/\/www.youtube.com\/@aiplanet"]},{"@type":"Person","@id":"https:\/\/aiplanet.com\/blog\/#\/schema\/person\/a92eab6344dcf1494fe7adf1d7650417","name":"Dr. Tirthajyoti Sarkar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/103a8654e5ff67495e6a4953adfb5caab2001a5e1e63aa2da54b5e0f16158812?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/103a8654e5ff67495e6a4953adfb5caab2001a5e1e63aa2da54b5e0f16158812?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/103a8654e5ff67495e6a4953adfb5caab2001a5e1e63aa2da54b5e0f16158812?s=96&d=mm&r=g","caption":"Dr. Tirthajyoti Sarkar"},"description":"Dr. Tirthajyoti is an AI\/ML expert and has 16+ years of R&amp;D experience in power electronics, semiconductor technology development, and product innovation. He actively contributes to the Data Science community through his educational articles, talks etc. He is an open-source contributor and recently published a book \"Data Wrangling with Python\".","url":"https:\/\/aiplanet.com\/blog\/author\/tirthajyoti\/"}]}},"_links":{"self":[{"href":"https:\/\/aiplanet.com\/blog\/wp-json\/wp\/v2\/posts\/579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aiplanet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aiplanet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aiplanet.com\/blog\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/aiplanet.com\/blog\/wp-json\/wp\/v2\/comments?post=579"}],"version-history":[{"count":2,"href":"https:\/\/aiplanet.com\/blog\/wp-json\/wp\/v2\/posts\/579\/revisions"}],"predecessor-version":[{"id":4956,"href":"https:\/\/aiplanet.com\/blog\/wp-json\/wp\/v2\/posts\/579\/revisions\/4956"}],"wp:attachment":[{"href":"https:\/\/aiplanet.com\/blog\/wp-json\/wp\/v2\/media?parent=579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aiplanet.com\/blog\/wp-json\/wp\/v2\/categories?post=579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aiplanet.com\/blog\/wp-json\/wp\/v2\/tags?post=579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}