News

New in .NET: ML.NET/Model Builder Updates, PeachPie 1.0, Xamarin Performance Monitoring

Updates to Microsoft's AI/ML tooling highlight recent developments in the .NET dev world, which include PeachPie 1.0 (PHP in .NET) and new performance monitoring support for Xamarin.

Microsoft regularly updates ML.NET, an open source, cross-platform machine learning (ML) framework for .NET devs, along with the integral Model Builder component that features a simple visual interface for building, training and deploying custom ML models without requiring deep expertise.

For Model Builder, the March 2021 update includes:

  • Config-based training with generated code-behind files: "Now when you right-click on your project in Solution Explorer and Add > Machine Learning, the Add New Item Dialog opens, and you can add an ML.NET Model."
    Select a Scenario After Adding a Model
    [Click on image for larger view.] Select a Scenario After Adding a Model (source: Microsoft).
    There's much more detail in the post about the new Model Builder experience, summarized in the ability of devlopers to:
    • Specify the name of a model and generated code
    • Have more than one Model Builder-generated model in a solution
    • Save state and come back to the last saved state, such that if you spend an hour training and close out of Model Builder, now you don't have to start over and can just pick up where you left off
    • Share the *.mbconfig file and collaborate on the same Model Builder instance via source control
    • Use the same *.mbconfig file in Model Builder and the ML.NET CLI (coming soon!)
  • Restructured Advanced Data Options: These improve on previously introduced data loading functionality. "In this release, we added several more options and reorganized the options to make selecting your column settings even easier."
  • Redesigned Consume step: "We have redesigned the consume step to make a smooth transition from training and evaluating a model to using that model to make predictions in an end-user application.
  • ML.NET, meanwhile, was updated to v1.5.5, with new features including:

    • A new API that accepts double type for the confidence level which helps when you need to have higher precision than an int will allow for
    • Support for export ValueMapping estimator to ONNX
    • New API to specify if the output from TensorFlow is batched or not (previously ML.NET always assumed it was a batch amount which caused errors when that wasn't true)

    Read all about it in the release notes.

    PeachPie 1.0.0
    In the works for years, this ".NET development platform for PHP" coming from the .NET Foundation has emerged in a milestone release. PHP, sometimes called "Hypertext Preprocessor" is a traditional web-dev mainstay scripting language.

    PeachPie
    [Click on image for larger view.] PeachPie (source: PeachPie).

    "We've focused on a few open source PHP projects, as well as our clients' applications for version 1.0.0 and we essentially intended to get them running on .NET fluently," the project announced on March 14. The team also needed to provide these features for practical usability:

    • PHP projects can be opened, built, debugged and profiled in Visual Studio
    • The latest WordPress version running on .NET, without any source files, including WordPress, the majority of plugins, e.g. Woocommerce and Elementor and themes
    • Selected composer packages compile and can be used as a class library by a C# project (Twig, PHPUnit, RandomLib, dependencies of the Laravel framework)
    • Code Analysis (compilation) provides detailed and useful diagnostics about the PHP code

    "Since PHP is .NET now, you can run it on Android and iOS, as well as on IoT devices. Moreover, it runs right in the browser as a web assembly," the post said.

    Sentry Performance Monitoring for Xamarin
    Application monitoring specialist Sentry announced its performance monitoring capabilities are now extended to Xamarin.

    But that Microsoft cross-platform development framework -- now being evolved and integrated with .NET 6 -- is just one of the new options announced by Sentry, with others being React Native and Android.

    "Frameworks that enable cross-platform development are rising in popularity, "Sentry said. "Used by roughly one-third of mobile developers, top frameworks include React Native, Xamarin and Google's Flutter. But whether a developer is building an app for Android or software for in-car experiences, a primary challenge is dealing with all the dependencies that can affect an application's uptime and performance across multiple platforms."

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube