{"id":14963666,"url":"https://github.com/dotnet/mbmlbook","last_synced_at":"2025-04-07T08:25:02.377Z","repository":{"id":40617423,"uuid":"173785725","full_name":"dotnet/mbmlbook","owner":"dotnet","description":"Sample code for the Model-Based Machine Learning book.","archived":false,"fork":false,"pushed_at":"2021-03-17T20:08:34.000Z","size":6316,"stargazers_count":293,"open_issues_count":7,"forks_count":83,"subscribers_count":31,"default_branch":"main","last_synced_at":"2025-03-31T07:05:51.524Z","etag":null,"topics":["machine-learning","probabilistic-graphical-models","probabilistic-models","probabilistic-programming"],"latest_commit_sha":null,"homepage":"http://mbmlbook.com","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dotnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE-OF-CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-04T16:58:38.000Z","updated_at":"2025-03-25T17:10:40.000Z","dependencies_parsed_at":"2022-07-10T14:17:20.902Z","dependency_job_id":null,"html_url":"https://github.com/dotnet/mbmlbook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet%2Fmbmlbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet%2Fmbmlbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet%2Fmbmlbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet%2Fmbmlbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotnet","download_url":"https://codeload.github.com/dotnet/mbmlbook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247616604,"owners_count":20967423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["machine-learning","probabilistic-graphical-models","probabilistic-models","probabilistic-programming"],"created_at":"2024-09-24T13:31:58.632Z","updated_at":"2025-04-07T08:25:02.345Z","avatar_url":"https://github.com/dotnet.png","language":"C#","readme":"# MBML Book Sample Code\n\nSupporting code for the [Model-Based Machine Learning](http://mbmlbook.com/) book.\n\nThis project contains the sample code and test data for the freely-available book on model-based machine learning at http://mbmlbook.com/. The book introduces readers to how to build machine learning models for real-world problems. Each chapter tackles a different problem by defining a statistical model and demonstrating how to apply it to actual data. This repository contains the source code for these models together with the sample data - so that readers can run it on their own, re-create the results from the book and experiment with modifying the code.\n\nModels here are created and applied using the [Infer.NET](https://github.com/dotnet/infer) framework.\nWhen targeting .NET Framework/Windows code produces visualizations using [Glo](GLO.md).\n\n## Contents\n\n- [Structure of Repository](#structure-of-repository)\n- [Building Sample Code](#building-sample-code)\n- [Contributing](#contributing)\n- [License](#license)\n- [.NET Foundation](#.net-foundation)\n\n## Structure of Repository\n\n* The Visual Studio solution `Samples.sln` in the root of the repository contains a project with models for every chapter of the book and a few projects with the shared code and/or unit tests from the folders described below. Code layout in projects corresponding to the book chapters is similar and expanded only once.\n\n* src/\n    * 1\\. A Murder Mystery - code by Thomas Diethe and Dmitry Kats/\n    * 2\\. Assessing People's Skills - code by Thomas Diethe and Dmitry Kats/\n        * Data - input data in ObjML format\n        * DataObjects - .NET types to hold the input data\n        * Experiment - types that facilitate experimentation: types for metrics, results, and, possibly, other experiment-related data structures; a type that represents a single experiment and exposes a method to run it, type(s) that store multiple experiments together for comparison, etc.\n        * Models - .NET types for [Infer.NET](https://github.com/dotnet/infer) models. Have methods to construct a model and to run inference on it.\n        * Views - additional [Glo](GLO.md) views needed for specific chapter. Not included in compilation when targeting .Net Core.\n        * Contents.cs - static type that has constants for the name of the chapter and all the sections within the chapter\n        * Program.cs\n    * 3\\. Meeting Your Match - code by Thomas Diethe and Alexander Novikov\n        * This chapter and the remaining chapters have similar layout to chapter 2.\n    * 4\\. Uncluttering Your Inbox - code by Thomas Diethe and Dmitry Kats\n    * 5\\. Making Recommendations - code by Yordan Zaykov and Alexander Novikov\n    * 6\\. Understanding Asthma - code by John Guiver and Dmitry Kats\n    * 7\\. Harnessing the Crowd - code by John Guiver and Dmitry Kats\n    * MBMLCommon/ -  a number of utility classes shared by different projects including\n        * Outputter.cs - class that encapsulates outputting objects, so that the code for chapters can output results in a platform-agnostic way. Also exposes methods for saving outputs to .objml files. \n    * MBMLViews - additional [Glo](GLO.md) views shared among the chapters.\n* test/ - projects with unit tests\n\n## Building Sample Code\n\nPlease, refer to our [building guide](BUILDING.md).\n\n## Contributing\n\nWe welcome contributions! Please review our [contribution guide](CONTRIBUTING.md).\n\n## License\n\nMBML Book Sample Code is licensed under the [MIT license](LICENSE).\n\n## .NET Foundation\n\nMBML Book Sample Code is a [.NET Foundation](https://www.dotnetfoundation.org/projects) project.\nIt relies on [Infer.NET](https://github.com/dotnet/infer) framework.\n\nThere are many .NET related projects on GitHub.\n\n- [.NET home repo](https://github.com/Microsoft/dotnet) - links to 100s of .NET projects, from Microsoft and the community.","funding_links":[],"categories":["machine-learning"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotnet%2Fmbmlbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotnet%2Fmbmlbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotnet%2Fmbmlbook/lists"}