Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Data Science with .NET and Polyglot Notebooks
Data Science with .NET and Polyglot Notebooks

Data Science with .NET and Polyglot Notebooks: Programmer's guide to data science using ML.NET, OpenAI, and Semantic Kernel

Arrow left icon
Profile Icon Matt Eland
Arrow right icon
₹799 ₹2859.99
eBook Aug 2024 404 pages 1st Edition
eBook
₹799 ₹2859.99
Paperback
₹3574.99
Subscription
Free Trial
Renews at ₹800p/m
Arrow left icon
Profile Icon Matt Eland
Arrow right icon
₹799 ₹2859.99
eBook Aug 2024 404 pages 1st Edition
eBook
₹799 ₹2859.99
Paperback
₹3574.99
Subscription
Free Trial
Renews at ₹800p/m
eBook
₹799 ₹2859.99
Paperback
₹3574.99
Subscription
Free Trial
Renews at ₹800p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Data Science with .NET and Polyglot Notebooks

Data Science, Notebooks, and Kernels

Data science seems like it is at an all-time high in popularity as advances in computing, storage, and data analysis have made new types of applications not just possible, but accessible to people who traditionally wouldn’t call themselves data scientists.

This book aims to help developers expand their existing knowledge and capabilities into the fields of data science, machine learning, artificial intelligence (AI), and data analysis.

In this opening chapter, we’ll cover these broad topics and explore what the field of data science includes, how the various parts of data science relate to each other, and how data science notebooks enable you to perform new tasks in new ways.

This chapter covers the following topics:

  • Exploring the field of data science
  • Data science notebooks and Project Jupyter
  • Extending notebooks with kernels
  • Polyglot Notebooks and .NET Interactive

Exploring the field of data science

Let’s start by defining what data science is and isn’t.

I define data science as the discipline of preparing and analyzing large amounts of data to extract insights and determine future behavior through machine learning and predictive modeling.

In other words, data science is all about gathering insights from the large amounts of data organizations amass every day. In fact, this is part of why data science has experienced an increase in popularity in the past decade.

Over the past several decades, organizations have moved more of their applications to be hosted on cloud computing providers such as Microsoft Azure, Amazon Web Services (AWS), and Google Cloud. This shift to cloud hosting had several benefits, including the following:

  • Ease in scaling web applications and databases as usage grows
  • Ease in adding new capabilities such as cloud storage and machine learning
  • Automated tools for collecting, storing, and...

Data science notebooks and Project Jupyter

In programming, when you want to illustrate a concept or explore new coding techniques, it’s normal to create a small application such as a console program and write the code you need there. This can be helpful for validating and communicating ideas, making small examples, reproducing errors, or building small demos.

Like programmers, data scientists also sometimes need to perform small experiments. While it’s entirely possible to perform data science experiments by creating a new Python or .NET program, a far more common approach for data scientists and data analysts is to create a notebook.

A notebook is a combination of documentation in the form of Markdown cells mixed together with code cells. This combination of code and documentation allows you to provide rich formatted documentation via Markdown while also providing live executable code in code cells.

For years, when people have talked about notebooks in data...

Extending notebooks with kernels

In our example in the previous section, we saw how code cells could be executed to produce a result.

This work is carried out by a kernel designed for the programming language you’re working with. In the earlier example, we saw a code cell written in Python. Since this is Python code, it uses the Python kernel.

In this way, the Jupyter Notebooks environment can support multiple languages, including Julia, Python, and R, as shown in Figure 1.8:

Figure 1.8 – Different kernels available to the notebook

Figure 1.8 – Different kernels available to the notebook

When you execute a Python cell, the code is sent to the Python kernel, which interprets it, executes it, and produces a result as illustrated in Figure 1.9:

Figure 1.9 – Jupyter Notebooks executing the Python kernel

Figure 1.9 – Jupyter Notebooks executing the Python kernel

This extensible design allows Jupyter Notebooks to support additional languages by adding additional kernels for those languages.

This is exactly what Polyglot...

Polyglot Notebooks and .NET Interactive

Polyglot Notebooks is a VS Code extension that integrates into Jupyter Notebooks to provide additional capabilities and language support through the kernel mechanism.

The goal of Polyglot Notebooks is to enrich the notebook experience by moving the supported languages beyond just the original languages. Polyglot Notebooks accomplishes this by adding its own kernel, called .NET Interactive, which supports the following languages:

  • C#
  • F#
  • JavaScript
  • Python
  • R
  • PowerShell
  • HTML
  • HTTP Requests
  • Mermaid
  • SQL
  • KQL

The philosophy of Polyglot Notebooks is that you should be able to choose the languages and tools you want to use for the task you’re trying to accomplish.

In other words, Polyglot Notebooks wants to allow you to pull data into your notebook via SQL, KQL, or a REST request, and then use C#, F#, or JavaScript to manipulate it before allowing you to visualize it using the capabilities...

Summary

In this chapter, we discussed the high-level fields of data science, machine learning, and AI.

While we covered these earlier in more depth, here is a consolidated set of definitions:

  • Artificial intelligence is the broadest field and revolves around emulating aspects of behaviors found in humans and animals.
  • Data science is the discipline of preparing and analyzing large amounts of data to extract insights and determine future behavior through machine learning and predictive modeling.
  • Machine learning is a broad field involving applying mathematics and statistics to solve data problems. Machine learning includes supervised learning, unsupervised learning, and semi-supervised learning including reinforcement learning.
  • Supervised learning involves applying statistical and mathematical techniques to model trends and relationships found in datasets.

In this chapter, we also discussed the role of notebooks in data science for conducting iterative experiments...

Further reading

See the following resources for more information on the topics covered in this chapter:

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Conduct a full range of data science experiments with clear explanations from start to finish
  • Learn key concepts in data analytics, machine learning, and AI and apply them to solve real-world problems
  • Access all of the code online as a notebook and interactive GitHub Codespace
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

As the fields of data science, machine learning, and artificial intelligence rapidly evolve, .NET developers are eager to leverage their expertise to dive into these exciting domains but are often unsure of how to do so. Data Science in .NET with Polyglot Notebooks is the practical guide you need to seamlessly bring your .NET skills into the world of analytics and AI. With Microsoft’s .NET platform now robustly supporting machine learning and AI tasks, the introduction of tools such as .NET Interactive kernels and Polyglot Notebooks has opened up a world of possibilities for .NET developers. This book empowers you to harness the full potential of these cutting-edge technologies, guiding you through hands-on experiments that illustrate key concepts and principles. Through a series of interactive notebooks, you’ll not only master technical processes but also discover how to integrate these new skills into your current role or pivot to exciting opportunities in the data science field. By the end of the book, you’ll have acquired the necessary knowledge and confidence to apply cutting-edge data science techniques and deliver impactful solutions within the .NET ecosystem.

Who is this book for?

This book is for experienced C# or F# developers who want to transition into data science and machine learning while leveraging their .NET expertise. It’s ideal for those looking to learn ML.NET and Semantic kernel and extend their .NET skills to data science, machine learning, and Generative AI Workflows.

What you will learn

  • Load, analyze, and transform data using DataFrames, data visualization, and descriptive statistics
  • Train machine learning models with ML.NET for classification and regression tasks
  • Customize ML.NET model training pipelines with AutoML, transforms, and model trainers
  • Apply best practices for deploying models and monitoring their performance
  • Connect to generative AI models using Polyglot Notebooks
  • Chain together complex AI tasks with AI orchestration, RAG, and Semantic Kernel
  • Create interactive online documentation with Mermaid charts and GitHub Codespaces

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Aug 30, 2024
Length: 404 pages
Edition : 1st
Language : English
ISBN-13 : 9781835882979
Category :
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Aug 30, 2024
Length: 404 pages
Edition : 1st
Language : English
ISBN-13 : 9781835882979
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
₹800 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
₹4500 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₹400 each
Feature tick icon Exclusive print discounts
₹5000 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₹400 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 10,575.97
Data Science with .NET and Polyglot Notebooks
₹3574.99
Functional Programming with C#
₹3574.99
Python Real-World Projects
₹3425.99
Total 10,575.97 Stars icon
Banner background image

Table of Contents

21 Chapters
Part 1: Data Analysis in Polyglot Notebooks Chevron down icon Chevron up icon
Chapter 1: Data Science, Notebooks, and Kernels Chevron down icon Chevron up icon
Chapter 2: Exploring Polyglot Notebooks Chevron down icon Chevron up icon
Chapter 3: Getting Data and Code into Your Notebooks Chevron down icon Chevron up icon
Chapter 4: Working with Tabular Data and DataFrames Chevron down icon Chevron up icon
Chapter 5: Visualizing Data Chevron down icon Chevron up icon
Chapter 6: Variable Correlations Chevron down icon Chevron up icon
Part 2: Machine Learning with Polyglot Notebooks and ML.NET Chevron down icon Chevron up icon
Chapter 7: Classification Experiments with ML.NET AutoML Chevron down icon Chevron up icon
Chapter 8: Regression Experiments with ML.NET AutoML Chevron down icon Chevron up icon
Chapter 9: Beyond AutoML: Pipelines, Trainers, and Transforms Chevron down icon Chevron up icon
Chapter 10: Deploying Machine Learning Models Chevron down icon Chevron up icon
Part 3: Exploring Generative AI with Polyglot Notebooks Chevron down icon Chevron up icon
Chapter 11: Generative AI in Polyglot Notebooks Chevron down icon Chevron up icon
Chapter 12: AI Orchestration with Semantic Kernel Chevron down icon Chevron up icon
Part 4: Polyglot Notebooks in the Enterprise Chevron down icon Chevron up icon
Chapter 13: Enriching Documentation with Mermaid Diagrams Chevron down icon Chevron up icon
Chapter 14: Extending Polyglot Notebooks Chevron down icon Chevron up icon
Chapter 15: Adopting and Deploying Polyglot Notebooks Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.