├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── data_suggestion.md │ ├── feature_request.md │ ├── getting_started_bug.md │ └── z_ally_report.md ├── issue_template.md ├── ml-dotnet-model-builder.gif └── workflows │ └── stale.yml ├── .gitignore ├── CODE-OF-CONDUCT.md ├── Dockerfiles ├── README.md ├── mlnetcli │ └── Dockerfile ├── onedal │ └── Dockerfile └── slim │ └── Dockerfile ├── LICENSE ├── LICENSE-CODE ├── README.md ├── docs ├── process │ └── IssueProcess.md └── release-notes │ ├── 16.13.0.md │ ├── 16.13.10.md │ ├── 16.13.6.md │ ├── 16.13.9.md │ ├── 16.14.0.md │ ├── 16.14.2.md │ ├── 16.14.3.md │ ├── 16.14.4.md │ ├── 16.15.0 and 17.15.0.md │ ├── 16.6.0.2130907.md │ ├── 16.6.3.2136603.md │ ├── 16.7.3.2143002.md │ ├── 16.7.6.2150402.md │ ├── 16.9.1.md │ ├── 16.9.2.md │ ├── 16.9.3.md │ ├── 17.16.0 and 16.16.0.md │ ├── 17.17.0 and 16.17.0.md │ └── 17.18.0 and 16.18.0.md ├── file-an-issue.md ├── gpu-instructions.md └── troubleshooting ├── ModelBuilderFAQ.md └── ModelBuilderTroubleshooting.md /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Report a bug 3 | about: Help us improve Model Builder. 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **System Information (please complete the following information):** 11 | - Model Builder Version (available in Manage Extensions dialog): 12 | - Visual Studio Version 13 | 14 | **Describe the bug** 15 | - On which step of the process did you run into an issue: 16 | - Clear description of the problem: 17 | 18 | **To Reproduce** 19 | Steps to reproduce the behavior: 20 | 1. Go to '...' 21 | 2. Click on '....' 22 | 3. Scroll down to '....' 23 | 4. See error 24 | 25 | **Expected behavior** 26 | A clear and concise description of what you expected to happen. 27 | 28 | **Screenshots** 29 | If applicable, add screenshots to help explain your problem. 30 | 31 | **Additional context** 32 | Add any other context about the problem here. 33 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/data_suggestion.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Data format suggesion 3 | about: Tell us about your data. 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | Model Builder currently supports two data sources, local files (.csv and .tsv) and SQL tables. We understand your data is in many different places and shapes. We'd like to understand where your data comes from so we can better support your scenario in Model Builder. 11 | 12 | **Where is your data located?** 13 | A clear and concise description of where you data is. i.e. Local json file, Cosmos DB, [...] 14 | 15 | **What does your data look like?** 16 | A clear and concise description of what format your data is in. Is it tabular? Is it in JSON format? 17 | 18 | **Does your data require transformations?** 19 | A clear and concise description of the state of your data. Does it have many missing values? Is much of it irrelevant? 20 | 21 | **Example** 22 | If possible, a small example of your data (inline or attached file). 23 | 24 | **Additional context** 25 | Add any other context or information you'd like to give us. 26 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Suggest a feature 3 | about: Share your ideas to make Model Builder better. 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/getting_started_bug.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Report a bug (Getting Started experience) 3 | about: Help us improve ML.NET tooling by reporting the problems you ran into getting started. 4 | title: '' 5 | labels: 'GS Tutorial' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **System Information (please complete the following information):** 11 | - Model Builder or CLI Version: 12 | - Visual Studio Version (if applicable): 13 | 14 | **Describe the bug** 15 | - On which page of the tutorial did you run into an issue (URL): 16 | - Clear description of the problem: 17 | 18 | **To Reproduce** 19 | Steps to reproduce the behavior: 20 | 1. Go to '...' 21 | 2. Click on '....' 22 | 3. Scroll down to '....' 23 | 4. See error 24 | 25 | **Expected behavior** 26 | A clear and concise description of what you expected to happen. 27 | 28 | **Screenshots** 29 | If applicable, add screenshots to help explain your problem. 30 | 31 | **Additional context** 32 | Add any other context about the problem here. 33 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/z_ally_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Report an accessibility bug 3 | about: Bug report for accessibility testing. 4 | title: '' 5 | labels: 'Accessibility' 6 | assignees: '' 7 | 8 | --- 9 | -------------------------------------------------------------------------------- /.github/issue_template.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug Report 3 | about: Something not working as expected? Create a bug report to help us improve. 4 | title: '' 5 | labels: ":x: bug" 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Model Builder Version**: _In which Model Builder version was the bug encountered?_ 11 | **Visual Studion Version**: _In which Visual Studio version was the bug encountered?_ 12 | 13 | **Bug description** 14 | _A clear and concise description of what the bug is._ 15 | 16 | **Steps to Reproduce** 17 | 1. _List the minimal steps required to reproduce the bug._ 18 | 2. _Thanks for reporting!_ 19 | 20 | **Expected Experience** 21 | _A description of what you expected to happen. If applicable, add screenshots or "Machine Learning" Output Logs to help explain what you expected._ 22 | 23 | **Actual Experience** 24 | _A description of what actually happens. If applicable, add screenshots or "Machine Learning" Output Logs to help explain what actually happened._ 25 | 26 | **Additional Context** 27 | _Add any other context about the problem here, such as unusual system configurations, network restrictions, etc._ 28 | -------------------------------------------------------------------------------- /.github/ml-dotnet-model-builder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotnet/machinelearning-modelbuilder/3ac02a6123bfa302e8d603dc944fe606e7f1ef25/.github/ml-dotnet-model-builder.gif -------------------------------------------------------------------------------- /.github/workflows/stale.yml: -------------------------------------------------------------------------------- 1 | name: Mark stale issues and pull requests 2 | 3 | on: 4 | workflow_dispatch: 5 | schedule: 6 | - cron: "30 1 * * *" 7 | 8 | jobs: 9 | stale: 10 | 11 | runs-on: ubuntu-latest 12 | permissions: 13 | issues: write 14 | pull-requests: write 15 | 16 | steps: 17 | - uses: actions/stale@v3 18 | with: 19 | repo-token: ${{ secrets.GITHUB_TOKEN }} 20 | stale-issue-label: 'stale' 21 | stale-issue-message: 'This issue has been marked stale because it has been open 30 days with no activity. If you are still hitting this issue, please remove the stale label and/or add provide more details.' 22 | skip-stale-issue-message: true 23 | days-before-stale: 30 24 | days-before-close: -1 25 | 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.suo 8 | *.user 9 | *.userosscache 10 | *.sln.docstates 11 | 12 | # User-specific files (MonoDevelop/Xamarin Studio) 13 | *.userprefs 14 | 15 | # Build results 16 | [Dd]ebug/ 17 | [Dd]ebugPublic/ 18 | [Rr]elease/ 19 | [Rr]eleases/ 20 | x64/ 21 | x86/ 22 | bld/ 23 | [Bb]in/ 24 | [Oo]bj/ 25 | [Ll]og/ 26 | 27 | # Visual Studio 2015/2017 cache/options directory 28 | .vs/ 29 | # Uncomment if you have tasks that create the project's static files in wwwroot 30 | #wwwroot/ 31 | 32 | # Visual Studio 2017 auto generated files 33 | Generated\ Files/ 34 | 35 | # MSTest test Results 36 | [Tt]est[Rr]esult*/ 37 | [Bb]uild[Ll]og.* 38 | 39 | # NUNIT 40 | *.VisualState.xml 41 | TestResult.xml 42 | 43 | # Build Results of an ATL Project 44 | [Dd]ebugPS/ 45 | [Rr]eleasePS/ 46 | dlldata.c 47 | 48 | # Benchmark Results 49 | BenchmarkDotNet.Artifacts/ 50 | 51 | # .NET Core 52 | project.lock.json 53 | project.fragment.lock.json 54 | artifacts/ 55 | **/Properties/launchSettings.json 56 | 57 | # StyleCop 58 | StyleCopReport.xml 59 | 60 | # Files built by Visual Studio 61 | *_i.c 62 | *_p.c 63 | *_i.h 64 | *.ilk 65 | *.meta 66 | *.obj 67 | *.iobj 68 | *.pch 69 | *.pdb 70 | *.ipdb 71 | *.pgc 72 | *.pgd 73 | *.rsp 74 | *.sbr 75 | *.tlb 76 | *.tli 77 | *.tlh 78 | *.tmp 79 | *.tmp_proj 80 | *.log 81 | *.vspscc 82 | *.vssscc 83 | .builds 84 | *.pidb 85 | *.svclog 86 | *.scc 87 | 88 | # Chutzpah Test files 89 | _Chutzpah* 90 | 91 | # Visual C++ cache files 92 | ipch/ 93 | *.aps 94 | *.ncb 95 | *.opendb 96 | *.opensdf 97 | *.sdf 98 | *.cachefile 99 | *.VC.db 100 | *.VC.VC.opendb 101 | 102 | # Visual Studio profiler 103 | *.psess 104 | *.vsp 105 | *.vspx 106 | *.sap 107 | 108 | # Visual Studio Trace Files 109 | *.e2e 110 | 111 | # TFS 2012 Local Workspace 112 | $tf/ 113 | 114 | # Guidance Automation Toolkit 115 | *.gpState 116 | 117 | # ReSharper is a .NET coding add-in 118 | _ReSharper*/ 119 | *.[Rr]e[Ss]harper 120 | *.DotSettings.user 121 | 122 | # JustCode is a .NET coding add-in 123 | .JustCode 124 | 125 | # TeamCity is a build add-in 126 | _TeamCity* 127 | 128 | # DotCover is a Code Coverage Tool 129 | *.dotCover 130 | 131 | # AxoCover is a Code Coverage Tool 132 | .axoCover/* 133 | !.axoCover/settings.json 134 | 135 | # Visual Studio code coverage results 136 | *.coverage 137 | *.coveragexml 138 | 139 | # NCrunch 140 | _NCrunch_* 141 | .*crunch*.local.xml 142 | nCrunchTemp_* 143 | 144 | # MightyMoose 145 | *.mm.* 146 | AutoTest.Net/ 147 | 148 | # Web workbench (sass) 149 | .sass-cache/ 150 | 151 | # Installshield output folder 152 | [Ee]xpress/ 153 | 154 | # DocProject is a documentation generator add-in 155 | DocProject/buildhelp/ 156 | DocProject/Help/*.HxT 157 | DocProject/Help/*.HxC 158 | DocProject/Help/*.hhc 159 | DocProject/Help/*.hhk 160 | DocProject/Help/*.hhp 161 | DocProject/Help/Html2 162 | DocProject/Help/html 163 | 164 | # Click-Once directory 165 | publish/ 166 | 167 | # Publish Web Output 168 | *.[Pp]ublish.xml 169 | *.azurePubxml 170 | # Note: Comment the next line if you want to checkin your web deploy settings, 171 | # but database connection strings (with potential passwords) will be unencrypted 172 | *.pubxml 173 | *.publishproj 174 | 175 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 176 | # checkin your Azure Web App publish settings, but sensitive information contained 177 | # in these scripts will be unencrypted 178 | PublishScripts/ 179 | 180 | # NuGet Packages 181 | *.nupkg 182 | # The packages folder can be ignored because of Package Restore 183 | **/[Pp]ackages/* 184 | # except build/, which is used as an MSBuild target. 185 | !**/[Pp]ackages/build/ 186 | # Uncomment if necessary however generally it will be regenerated when needed 187 | #!**/[Pp]ackages/repositories.config 188 | # NuGet v3's project.json files produces more ignorable files 189 | *.nuget.props 190 | *.nuget.targets 191 | 192 | # Microsoft Azure Build Output 193 | csx/ 194 | *.build.csdef 195 | 196 | # Microsoft Azure Emulator 197 | ecf/ 198 | rcf/ 199 | 200 | # Windows Store app package directories and files 201 | AppPackages/ 202 | BundleArtifacts/ 203 | Package.StoreAssociation.xml 204 | _pkginfo.txt 205 | *.appx 206 | 207 | # Visual Studio cache files 208 | # files ending in .cache can be ignored 209 | *.[Cc]ache 210 | # but keep track of directories ending in .cache 211 | !*.[Cc]ache/ 212 | 213 | # Others 214 | ClientBin/ 215 | ~$* 216 | *~ 217 | *.dbmdl 218 | *.dbproj.schemaview 219 | *.jfm 220 | *.pfx 221 | *.publishsettings 222 | orleans.codegen.cs 223 | 224 | # Including strong name files can present a security risk 225 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 226 | #*.snk 227 | 228 | # Since there are multiple workflows, uncomment next line to ignore bower_components 229 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 230 | #bower_components/ 231 | 232 | # RIA/Silverlight projects 233 | Generated_Code/ 234 | 235 | # Backup & report files from converting an old project file 236 | # to a newer Visual Studio version. Backup files are not needed, 237 | # because we have git ;-) 238 | _UpgradeReport_Files/ 239 | Backup*/ 240 | UpgradeLog*.XML 241 | UpgradeLog*.htm 242 | ServiceFabricBackup/ 243 | *.rptproj.bak 244 | 245 | # SQL Server files 246 | *.mdf 247 | *.ldf 248 | *.ndf 249 | 250 | # Business Intelligence projects 251 | *.rdl.data 252 | *.bim.layout 253 | *.bim_*.settings 254 | *.rptproj.rsuser 255 | 256 | # Microsoft Fakes 257 | FakesAssemblies/ 258 | 259 | # GhostDoc plugin setting file 260 | *.GhostDoc.xml 261 | 262 | # Node.js Tools for Visual Studio 263 | .ntvs_analysis.dat 264 | node_modules/ 265 | 266 | # Visual Studio 6 build log 267 | *.plg 268 | 269 | # Visual Studio 6 workspace options file 270 | *.opt 271 | 272 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 273 | *.vbw 274 | 275 | # Visual Studio LightSwitch build output 276 | **/*.HTMLClient/GeneratedArtifacts 277 | **/*.DesktopClient/GeneratedArtifacts 278 | **/*.DesktopClient/ModelManifest.xml 279 | **/*.Server/GeneratedArtifacts 280 | **/*.Server/ModelManifest.xml 281 | _Pvt_Extensions 282 | 283 | # Paket dependency manager 284 | .paket/paket.exe 285 | paket-files/ 286 | 287 | # FAKE - F# Make 288 | .fake/ 289 | 290 | # JetBrains Rider 291 | .idea/ 292 | *.sln.iml 293 | 294 | # CodeRush 295 | .cr/ 296 | 297 | # Python Tools for Visual Studio (PTVS) 298 | __pycache__/ 299 | *.pyc 300 | 301 | # Cake - Uncomment if you are using it 302 | # tools/** 303 | # !tools/packages.config 304 | 305 | # Tabs Studio 306 | *.tss 307 | 308 | # Telerik's JustMock configuration file 309 | *.jmconfig 310 | 311 | # BizTalk build output 312 | *.btp.cs 313 | *.btm.cs 314 | *.odx.cs 315 | *.xsd.cs 316 | 317 | # OpenCover UI analysis results 318 | OpenCover/ 319 | 320 | # Azure Stream Analytics local run output 321 | ASALocalRun/ 322 | 323 | # MSBuild Binary and Structured Log 324 | *.binlog 325 | 326 | # NVidia Nsight GPU debugger configuration file 327 | *.nvuser 328 | 329 | # MFractors (Xamarin productivity tool) working folder 330 | .mfractor/ 331 | -------------------------------------------------------------------------------- /CODE-OF-CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | This project has adopted the code of conduct defined by the Contributor Covenant 4 | to clarify expected behavior in our community. 5 | 6 | For more information, see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct). 7 | -------------------------------------------------------------------------------- /Dockerfiles/README.md: -------------------------------------------------------------------------------- 1 | # Dockerfiles 2 | 3 | This directory contains a set of Dockerfiles for use as custom training environments in Azure Machine Learning. For more information on using Docker images to create environments in Azure Machine Learning, see the article [how to manage environments](https://docs.microsoft.com/azure/machine-learning/how-to-manage-environments-v2#create-an-environment-from-a-docker-image) 4 | 5 | ## Files 6 | 7 | | Name | Location | Description | 8 | | --- | --- | --- | 9 | | Slim | [Dockerfiles/slim/Dockerfile](./slim/Dockerfile) | Contains components included in NET 6 SDK Dockerfile | 10 | | ML.NET CLI | [Dockerfiles/mlnetcli/Dockerfile](./mlnetcli/Dockerfile) | Contains the ML.NET CLI | 11 | | oneDAL | [Dockerfiles/mlnetcli/Dockerfile](./onedal/Dockerfile) | Enables [Intel oneDAL hardware acceleration](https://devblogs.microsoft.com/dotnet/accelerate-ml-net-training-with-intel-onedal/) | 12 | 13 | ## Usage 14 | 15 | For more information on using these images, see the related blog post, 16 | [Train an ML.NET model with Azure ML](https://devblogs.microsoft.com/dotnet/training-a-ml-dotnet-model-with-azure-ml/#training-a-ml-net-model-via-azure-machine-learning). -------------------------------------------------------------------------------- /Dockerfiles/mlnetcli/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mcr.microsoft.com/dotnet/sdk:6.0 2 | RUN dotnet tool install -g mlnet-linux-x64 3 | ENV PATH="$PATH:/root/.dotnet/tools" -------------------------------------------------------------------------------- /Dockerfiles/onedal/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mcr.microsoft.com/dotnet/sdk:6.0 2 | 3 | ENV MLNET_BACKEND="ONEDAL" -------------------------------------------------------------------------------- /Dockerfiles/slim/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mcr.microsoft.com/dotnet/sdk:6.0 -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Attribution 4.0 International 2 | 3 | ======================================================================= 4 | 5 | Creative Commons Corporation ("Creative Commons") is not a law firm and 6 | does not provide legal services or legal advice. Distribution of 7 | Creative Commons public licenses does not create a lawyer-client or 8 | other relationship. Creative Commons makes its licenses and related 9 | information available on an "as-is" basis. Creative Commons gives no 10 | warranties regarding its licenses, any material licensed under their 11 | terms and conditions, or any related information. Creative Commons 12 | disclaims all liability for damages resulting from their use to the 13 | fullest extent possible. 14 | 15 | Using Creative Commons Public Licenses 16 | 17 | Creative Commons public licenses provide a standard set of terms and 18 | conditions that creators and other rights holders may use to share 19 | original works of authorship and other material subject to copyright 20 | and certain other rights specified in the public license below. The 21 | following considerations are for informational purposes only, are not 22 | exhaustive, and do not form part of our licenses. 23 | 24 | Considerations for licensors: Our public licenses are 25 | intended for use by those authorized to give the public 26 | permission to use material in ways otherwise restricted by 27 | copyright and certain other rights. Our licenses are 28 | irrevocable. Licensors should read and understand the terms 29 | and conditions of the license they choose before applying it. 30 | Licensors should also secure all rights necessary before 31 | applying our licenses so that the public can reuse the 32 | material as expected. Licensors should clearly mark any 33 | material not subject to the license. This includes other CC- 34 | licensed material, or material used under an exception or 35 | limitation to copyright. More considerations for licensors: 36 | wiki.creativecommons.org/Considerations_for_licensors 37 | 38 | Considerations for the public: By using one of our public 39 | licenses, a licensor grants the public permission to use the 40 | licensed material under specified terms and conditions. If 41 | the licensor's permission is not necessary for any reason--for 42 | example, because of any applicable exception or limitation to 43 | copyright--then that use is not regulated by the license. Our 44 | licenses grant only permissions under copyright and certain 45 | other rights that a licensor has authority to grant. Use of 46 | the licensed material may still be restricted for other 47 | reasons, including because others have copyright or other 48 | rights in the material. A licensor may make special requests, 49 | such as asking that all changes be marked or described. 50 | Although not required by our licenses, you are encouraged to 51 | respect those requests where reasonable. More_considerations 52 | for the public: 53 | wiki.creativecommons.org/Considerations_for_licensees 54 | 55 | ======================================================================= 56 | 57 | Creative Commons Attribution 4.0 International Public License 58 | 59 | By exercising the Licensed Rights (defined below), You accept and agree 60 | to be bound by the terms and conditions of this Creative Commons 61 | Attribution 4.0 International Public License ("Public License"). To the 62 | extent this Public License may be interpreted as a contract, You are 63 | granted the Licensed Rights in consideration of Your acceptance of 64 | these terms and conditions, and the Licensor grants You such rights in 65 | consideration of benefits the Licensor receives from making the 66 | Licensed Material available under these terms and conditions. 67 | 68 | 69 | Section 1 -- Definitions. 70 | 71 | a. Adapted Material means material subject to Copyright and Similar 72 | Rights that is derived from or based upon the Licensed Material 73 | and in which the Licensed Material is translated, altered, 74 | arranged, transformed, or otherwise modified in a manner requiring 75 | permission under the Copyright and Similar Rights held by the 76 | Licensor. For purposes of this Public License, where the Licensed 77 | Material is a musical work, performance, or sound recording, 78 | Adapted Material is always produced where the Licensed Material is 79 | synched in timed relation with a moving image. 80 | 81 | b. Adapter's License means the license You apply to Your Copyright 82 | and Similar Rights in Your contributions to Adapted Material in 83 | accordance with the terms and conditions of this Public License. 84 | 85 | c. Copyright and Similar Rights means copyright and/or similar rights 86 | closely related to copyright including, without limitation, 87 | performance, broadcast, sound recording, and Sui Generis Database 88 | Rights, without regard to how the rights are labeled or 89 | categorized. For purposes of this Public License, the rights 90 | specified in Section 2(b)(1)-(2) are not Copyright and Similar 91 | Rights. 92 | 93 | d. Effective Technological Measures means those measures that, in the 94 | absence of proper authority, may not be circumvented under laws 95 | fulfilling obligations under Article 11 of the WIPO Copyright 96 | Treaty adopted on December 20, 1996, and/or similar international 97 | agreements. 98 | 99 | e. Exceptions and Limitations means fair use, fair dealing, and/or 100 | any other exception or limitation to Copyright and Similar Rights 101 | that applies to Your use of the Licensed Material. 102 | 103 | f. Licensed Material means the artistic or literary work, database, 104 | or other material to which the Licensor applied this Public 105 | License. 106 | 107 | g. Licensed Rights means the rights granted to You subject to the 108 | terms and conditions of this Public License, which are limited to 109 | all Copyright and Similar Rights that apply to Your use of the 110 | Licensed Material and that the Licensor has authority to license. 111 | 112 | h. Licensor means the individual(s) or entity(ies) granting rights 113 | under this Public License. 114 | 115 | i. Share means to provide material to the public by any means or 116 | process that requires permission under the Licensed Rights, such 117 | as reproduction, public display, public performance, distribution, 118 | dissemination, communication, or importation, and to make material 119 | available to the public including in ways that members of the 120 | public may access the material from a place and at a time 121 | individually chosen by them. 122 | 123 | j. Sui Generis Database Rights means rights other than copyright 124 | resulting from Directive 96/9/EC of the European Parliament and of 125 | the Council of 11 March 1996 on the legal protection of databases, 126 | as amended and/or succeeded, as well as other essentially 127 | equivalent rights anywhere in the world. 128 | 129 | k. You means the individual or entity exercising the Licensed Rights 130 | under this Public License. Your has a corresponding meaning. 131 | 132 | 133 | Section 2 -- Scope. 134 | 135 | a. License grant. 136 | 137 | 1. Subject to the terms and conditions of this Public License, 138 | the Licensor hereby grants You a worldwide, royalty-free, 139 | non-sublicensable, non-exclusive, irrevocable license to 140 | exercise the Licensed Rights in the Licensed Material to: 141 | 142 | a. reproduce and Share the Licensed Material, in whole or 143 | in part; and 144 | 145 | b. produce, reproduce, and Share Adapted Material. 146 | 147 | 2. Exceptions and Limitations. For the avoidance of doubt, where 148 | Exceptions and Limitations apply to Your use, this Public 149 | License does not apply, and You do not need to comply with 150 | its terms and conditions. 151 | 152 | 3. Term. The term of this Public License is specified in Section 153 | 6(a). 154 | 155 | 4. Media and formats; technical modifications allowed. The 156 | Licensor authorizes You to exercise the Licensed Rights in 157 | all media and formats whether now known or hereafter created, 158 | and to make technical modifications necessary to do so. The 159 | Licensor waives and/or agrees not to assert any right or 160 | authority to forbid You from making technical modifications 161 | necessary to exercise the Licensed Rights, including 162 | technical modifications necessary to circumvent Effective 163 | Technological Measures. For purposes of this Public License, 164 | simply making modifications authorized by this Section 2(a) 165 | (4) never produces Adapted Material. 166 | 167 | 5. Downstream recipients. 168 | 169 | a. Offer from the Licensor -- Licensed Material. Every 170 | recipient of the Licensed Material automatically 171 | receives an offer from the Licensor to exercise the 172 | Licensed Rights under the terms and conditions of this 173 | Public License. 174 | 175 | b. No downstream restrictions. You may not offer or impose 176 | any additional or different terms or conditions on, or 177 | apply any Effective Technological Measures to, the 178 | Licensed Material if doing so restricts exercise of the 179 | Licensed Rights by any recipient of the Licensed 180 | Material. 181 | 182 | 6. No endorsement. Nothing in this Public License constitutes or 183 | may be construed as permission to assert or imply that You 184 | are, or that Your use of the Licensed Material is, connected 185 | with, or sponsored, endorsed, or granted official status by, 186 | the Licensor or others designated to receive attribution as 187 | provided in Section 3(a)(1)(A)(i). 188 | 189 | b. Other rights. 190 | 191 | 1. Moral rights, such as the right of integrity, are not 192 | licensed under this Public License, nor are publicity, 193 | privacy, and/or other similar personality rights; however, to 194 | the extent possible, the Licensor waives and/or agrees not to 195 | assert any such rights held by the Licensor to the limited 196 | extent necessary to allow You to exercise the Licensed 197 | Rights, but not otherwise. 198 | 199 | 2. Patent and trademark rights are not licensed under this 200 | Public License. 201 | 202 | 3. To the extent possible, the Licensor waives any right to 203 | collect royalties from You for the exercise of the Licensed 204 | Rights, whether directly or through a collecting society 205 | under any voluntary or waivable statutory or compulsory 206 | licensing scheme. In all other cases the Licensor expressly 207 | reserves any right to collect such royalties. 208 | 209 | 210 | Section 3 -- License Conditions. 211 | 212 | Your exercise of the Licensed Rights is expressly made subject to the 213 | following conditions. 214 | 215 | a. Attribution. 216 | 217 | 1. If You Share the Licensed Material (including in modified 218 | form), You must: 219 | 220 | a. retain the following if it is supplied by the Licensor 221 | with the Licensed Material: 222 | 223 | i. identification of the creator(s) of the Licensed 224 | Material and any others designated to receive 225 | attribution, in any reasonable manner requested by 226 | the Licensor (including by pseudonym if 227 | designated); 228 | 229 | ii. a copyright notice; 230 | 231 | iii. a notice that refers to this Public License; 232 | 233 | iv. a notice that refers to the disclaimer of 234 | warranties; 235 | 236 | v. a URI or hyperlink to the Licensed Material to the 237 | extent reasonably practicable; 238 | 239 | b. indicate if You modified the Licensed Material and 240 | retain an indication of any previous modifications; and 241 | 242 | c. indicate the Licensed Material is licensed under this 243 | Public License, and include the text of, or the URI or 244 | hyperlink to, this Public License. 245 | 246 | 2. You may satisfy the conditions in Section 3(a)(1) in any 247 | reasonable manner based on the medium, means, and context in 248 | which You Share the Licensed Material. For example, it may be 249 | reasonable to satisfy the conditions by providing a URI or 250 | hyperlink to a resource that includes the required 251 | information. 252 | 253 | 3. If requested by the Licensor, You must remove any of the 254 | information required by Section 3(a)(1)(A) to the extent 255 | reasonably practicable. 256 | 257 | 4. If You Share Adapted Material You produce, the Adapter's 258 | License You apply must not prevent recipients of the Adapted 259 | Material from complying with this Public License. 260 | 261 | 262 | Section 4 -- Sui Generis Database Rights. 263 | 264 | Where the Licensed Rights include Sui Generis Database Rights that 265 | apply to Your use of the Licensed Material: 266 | 267 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right 268 | to extract, reuse, reproduce, and Share all or a substantial 269 | portion of the contents of the database; 270 | 271 | b. if You include all or a substantial portion of the database 272 | contents in a database in which You have Sui Generis Database 273 | Rights, then the database in which You have Sui Generis Database 274 | Rights (but not its individual contents) is Adapted Material; and 275 | 276 | c. You must comply with the conditions in Section 3(a) if You Share 277 | all or a substantial portion of the contents of the database. 278 | 279 | For the avoidance of doubt, this Section 4 supplements and does not 280 | replace Your obligations under this Public License where the Licensed 281 | Rights include other Copyright and Similar Rights. 282 | 283 | 284 | Section 5 -- Disclaimer of Warranties and Limitation of Liability. 285 | 286 | a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE 287 | EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS 288 | AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF 289 | ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, 290 | IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, 291 | WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR 292 | PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, 293 | ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT 294 | KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT 295 | ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. 296 | 297 | b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE 298 | TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, 299 | NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, 300 | INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, 301 | COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR 302 | USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN 303 | ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR 304 | DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR 305 | IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. 306 | 307 | c. The disclaimer of warranties and limitation of liability provided 308 | above shall be interpreted in a manner that, to the extent 309 | possible, most closely approximates an absolute disclaimer and 310 | waiver of all liability. 311 | 312 | 313 | Section 6 -- Term and Termination. 314 | 315 | a. This Public License applies for the term of the Copyright and 316 | Similar Rights licensed here. However, if You fail to comply with 317 | this Public License, then Your rights under this Public License 318 | terminate automatically. 319 | 320 | b. Where Your right to use the Licensed Material has terminated under 321 | Section 6(a), it reinstates: 322 | 323 | 1. automatically as of the date the violation is cured, provided 324 | it is cured within 30 days of Your discovery of the 325 | violation; or 326 | 327 | 2. upon express reinstatement by the Licensor. 328 | 329 | For the avoidance of doubt, this Section 6(b) does not affect any 330 | right the Licensor may have to seek remedies for Your violations 331 | of this Public License. 332 | 333 | c. For the avoidance of doubt, the Licensor may also offer the 334 | Licensed Material under separate terms or conditions or stop 335 | distributing the Licensed Material at any time; however, doing so 336 | will not terminate this Public License. 337 | 338 | d. Sections 1, 5, 6, 7, and 8 survive termination of this Public 339 | License. 340 | 341 | 342 | Section 7 -- Other Terms and Conditions. 343 | 344 | a. The Licensor shall not be bound by any additional or different 345 | terms or conditions communicated by You unless expressly agreed. 346 | 347 | b. Any arrangements, understandings, or agreements regarding the 348 | Licensed Material not stated herein are separate from and 349 | independent of the terms and conditions of this Public License. 350 | 351 | 352 | Section 8 -- Interpretation. 353 | 354 | a. For the avoidance of doubt, this Public License does not, and 355 | shall not be interpreted to, reduce, limit, restrict, or impose 356 | conditions on any use of the Licensed Material that could lawfully 357 | be made without permission under this Public License. 358 | 359 | b. To the extent possible, if any provision of this Public License is 360 | deemed unenforceable, it shall be automatically reformed to the 361 | minimum extent necessary to make it enforceable. If the provision 362 | cannot be reformed, it shall be severed from this Public License 363 | without affecting the enforceability of the remaining terms and 364 | conditions. 365 | 366 | c. No term or condition of this Public License will be waived and no 367 | failure to comply consented to unless expressly agreed to by the 368 | Licensor. 369 | 370 | d. Nothing in this Public License constitutes or may be interpreted 371 | as a limitation upon, or waiver of, any privileges and immunities 372 | that apply to the Licensor or You, including from the legal 373 | processes of any jurisdiction or authority. 374 | 375 | 376 | ======================================================================= 377 | 378 | Creative Commons is not a party to its public 379 | licenses. Notwithstanding, Creative Commons may elect to apply one of 380 | its public licenses to material it publishes and in those instances 381 | will be considered the “Licensor.” The text of the Creative Commons 382 | public licenses is dedicated to the public domain under the CC0 Public 383 | Domain Dedication. Except for the limited purpose of indicating that 384 | material is shared under a Creative Commons public license or as 385 | otherwise permitted by the Creative Commons policies published at 386 | creativecommons.org/policies, Creative Commons does not authorize the 387 | use of the trademark "Creative Commons" or any other trademark or logo 388 | of Creative Commons without its prior written consent including, 389 | without limitation, in connection with any unauthorized modifications 390 | to any of its public licenses or any other arrangements, 391 | understandings, or agreements concerning use of licensed material. For 392 | the avoidance of doubt, this paragraph does not form part of the 393 | public licenses. 394 | 395 | Creative Commons may be contacted at creativecommons.org. -------------------------------------------------------------------------------- /LICENSE-CODE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) .NET Foundation. All rights reserved. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Model Builder 2 | 3 | Model Builder is a UI tool in Visual Studio that lets you build, train and consume custom machine learning models in your applications. 4 | 5 | With little to no machine learning expertise you can use this visual interface to connect to your data stored in files or SQL Server. 6 | 7 | Model Builder leverages best in class automated machine learning (AutoML) to train and evaluate different algorithms. It produces the best model for your scenario and data without any tuning required from you. 8 | 9 | After training, you can generate code for training and consuming this model in their applications. 10 | 11 | ![GIF of Model Builder](.github/ml-dotnet-model-builder.gif) 12 | 13 | Get started with Model Builder using the following resources: 14 | 15 | - [Installation](https://github.com/dotnet/machinelearning-samples/blob/master/modelbuilder/readme.md#Installation) 16 | - [Getting started tutorial](https://dotnet.microsoft.com/learn/machinelearning-ai/ml-dotnet-get-started-tutorial/intro) 17 | - [Documentation](https://aka.ms/modelbuilderdocs) 18 | - [Limitations](https://github.com/dotnet/machinelearning-samples/blob/master/modelbuilder/readme.md#Limitations) 19 | 20 | ## Installation 21 | 22 | ### Prerequisites 23 | 24 | - Visual Studio 2022 or Visual Studio 2019 25 | - .NET Core 3.1 SDK or later 26 | 27 | Model Builder is built into Visual Studio 2022 and Visual Studio 2019. For installation instructions, see the [Model Builder installation guide](https://docs.microsoft.com/dotnet/machine-learning/how-to-guides/install-model-builder?tabs=visual-studio-2022). 28 | 29 | Alternatively, you can install Model Builder from the Visual Studio marketplace 30 | 31 | - [Model Builder for Visual Studio 2022](https://marketplace.visualstudio.com/items?itemName=MLNET.ModelBuilder2022) 32 | - [Model Builder for Visual Studio 2019](https://marketplace.visualstudio.com/items?itemName=MLNET.07) 33 | 34 | ## Limitations 35 | 36 | - ML.NET Model Builder Extension currently only works on Visual Studio on Windows. 37 | 38 | ## How can I contribute? 39 | 40 | Help us improve ML.NET tooling by filing issues and providing feedback on feature requests and bugs. For general guidance, see the [filing an issue guide](./file-an-issue.md). 41 | 42 | ## Legal Notices 43 | 44 | .NET Foundation and any contributors grant you a license to the .NET Foundation documentation and other content 45 | in this repository under the [Creative Commons Attribution 4.0 International Public License](https://creativecommons.org/licenses/by/4.0/legalcode), 46 | see the [LICENSE](LICENSE) file, and grant you a license to any code in the repository under the [MIT License](https://opensource.org/licenses/MIT), see the 47 | [LICENSE-CODE](LICENSE-CODE) file. 48 | 49 | Microsoft, Windows, Microsoft Azure and/or other Microsoft products and services referenced in the documentation 50 | may be either trademarks or registered trademarks of Microsoft in the United States and/or other countries. 51 | The licenses for this project do not grant you rights to use any Microsoft names, logos, or trademarks. 52 | Microsoft's general trademark guidelines can be found at http://go.microsoft.com/fwlink/?LinkID=254653. 53 | 54 | Privacy information can be found at https://go.microsoft.com/fwlink/?LinkId=521839 55 | 56 | .NET Foundation and any contributors reserve all other rights, whether under their respective copyrights, patents, 57 | or trademarks, whether by implication, estoppel or otherwise. 58 | -------------------------------------------------------------------------------- /docs/process/IssueProcess.md: -------------------------------------------------------------------------------- 1 | ## New Issues 2 | 3 | #### Issues filed by customers 4 | These new issues should be looked at by the DRI. 5 | 1. Add the "Reported by: Customer" label. 6 | 2. Try to reproduce and ask follow up questions. 7 | 3. Add to the [ML.NET DRI Project](https://github.com/orgs/dotnet/projects) if we don't have enough information to reproduce the problem. 8 | 4. Add the "triage" label to anything you'd like PM/Lead to look at. 9 | 10 | #### Issues filed by tester/team 11 | These are reviewed by PM/Lead during the weekly triage. Issues that should be fixed soon are added to the [ML.NET Tools Project](https://github.com/orgs/dotnet/projects/107/views/1) and put in the current milestone 12 | 13 | ## Issues In progress 14 | - Starting work: If not done already, add issue to the [ML.NET Tools Project](https://github.com/orgs/dotnet/projects/107/views/1) and set the current active milestone. Move the issue to _In Progress_ column. 15 | - Open PR: Link the issue in the PR (or vice versa). Move the issue to the _In PR_ column. 16 | 17 | ## Fixed issues 18 | Fixed issues should be validated by a team member. Move the issue to _Validate_ column in the ML.NET Tools Project. 19 | 20 | ## Validated Issues 21 | Once an issue is validated it should be moved to the _Done_ column. Not all _Done_ issues should be closed. Closing an issue depends on who filed it and when it was fixed. The goal is for customers to be able to understand the state of the product based on the issues. 22 | - Issues filed by the tester/team on new features (never seen by customers) can be closed after being fixed. These are internal issues that can be closed as they do not impact customers. 23 | - Issues filed by customers should be kept open until their release. 24 | - New feature issues should be kept open until their release. 25 | -------------------------------------------------------------------------------- /docs/release-notes/16.13.0.md: -------------------------------------------------------------------------------- 1 | ## Forecasting release 2 | - Add Forecasting scenario to Model Builder. [Issue 1750](https://github.com/dotnet/machinelearning-modelbuilder/issues/1750) 3 | 4 | ## Other changes 5 | - Update .mbconfig file format. When opening older .mbconfg file Model Builder will prompt you to update. [Issue 1970](https://github.com/dotnet/machinelearning-modelbuilder/issues/1970) 6 | - Update the names of codebehind files after rename of .mbconfig file. [Issue 1679](https://github.com/dotnet/machinelearning-modelbuilder/issues/1679) 7 | - Frequent ```Object reference not set to an instance of an object``` errors. [Issue 1513](https://github.com/dotnet/machinelearning-modelbuilder/issues/1513) 8 | -------------------------------------------------------------------------------- /docs/release-notes/16.13.10.md: -------------------------------------------------------------------------------- 1 | ## Fixes 2 | - Correctly parse DateTime in consume code snippet [#2167](https://github.com/dotnet/machinelearning-modelbuilder/issues/2167) 3 | - With large datasets it is difficult to select the label column. For datasets larger than 1000 columns, replace the combo box with an input text box. [#1431](https://github.com/dotnet/machinelearning-modelbuilder/issues/1431) 4 | - Update PROSE version for more accurate column type prediction [#2132](https://github.com/dotnet/machinelearning-modelbuilder/issues/2132) 5 | 6 | ## Accessibility fixes 7 | - Multiple issues found in accessibility pass [#2181](https://github.com/dotnet/machinelearning-modelbuilder/issues/2181), [#2184](https://github.com/dotnet/machinelearning-modelbuilder/issues/2184), [#2186](https://github.com/dotnet/machinelearning-modelbuilder/issues/2186) [#2187](https://github.com/dotnet/machinelearning-modelbuilder/issues/2187), [#2189](https://github.com/dotnet/machinelearning-modelbuilder/issues/2189) 8 | - SQL Table selection combo box is difficult to use with keyboard [#1364](https://github.com/dotnet/machinelearning-modelbuilder/issues/1364) 9 | -------------------------------------------------------------------------------- /docs/release-notes/16.13.6.md: -------------------------------------------------------------------------------- 1 | ## Improvements to wide datasets: 2 | - Enable loading of large datasets by reducing the number of columns shown https://github.com/dotnet/machinelearning-modelbuilder/issues/1217 3 | - Load Advanced Data Options even when there are many columns https://github.com/dotnet/machinelearning-modelbuilder/issues/1669 4 | 5 | ## Other 6 | - Fix shuffle problem for large image datasets https://github.com/dotnet/machinelearning-modelbuilder/issues/2102 7 | - Evaluate "Try It Out" should respect dataset settings, not local region https://github.com/dotnet/machinelearning-modelbuilder/issues/1913 8 | - Fix object detection generated notebook https://github.com/dotnet/machinelearning-modelbuilder/issues/1890 9 | - Fix forecasting generated console application https://github.com/dotnet/machinelearning-modelbuilder/issues/2061 10 | -------------------------------------------------------------------------------- /docs/release-notes/16.13.9.md: -------------------------------------------------------------------------------- 1 | ## Fixes 2 | - Support DateTime type for File and SQL data sources https://github.com/dotnet/machinelearning-modelbuilder/issues/1744 3 | - Show link to install VS Notebook Editor extension https://github.com/dotnet/machinelearning-modelbuilder/issues/2142 4 | - Install GPU Extension link takes you to correct extension version based on VS version https://github.com/dotnet/machinelearning-modelbuilder/issues/2123 5 | - Check GPU settings when reloading .MBConfig file https://github.com/dotnet/machinelearning-modelbuilder/issues/2117 6 | -------------------------------------------------------------------------------- /docs/release-notes/16.14.0.md: -------------------------------------------------------------------------------- 1 | ### Text Classification Scenario 2 | Text Classification is now available in Model Builder! Text classification is the process of applying labels or categories to text. This scenario works English text and is great for tasks like sentiment analysis and text categorization. Read the ML.NET announcement [blog](https://devblogs.microsoft.com/dotnet/introducing-the-ml-dotnet-text-classification-api-preview/) post for more details. 3 | 4 | ### Advanced Training Options 5 | Add Advanced Training Options to the Model Builder UI. This allows selection of an optimization metric for the chosen scenario, and any algorithms to exclude from training. [#2191](https://github.com/dotnet/machinelearning-modelbuilder/issues/2191) 6 | 7 | ### General 8 | - Save data file as relative path in the .mbconfig file. This allows checking a .mbconfig file and data file into GitHub to be shared across computers. [#1656](https://github.com/dotnet/machinelearning-modelbuilder/issues/1656) 9 | - Advanced Data Options - Column Settings for Forecasting scenario should be turned off. [#2015](https://github.com/dotnet/machinelearning-modelbuilder/issues/2015) 10 | - Add command to reload image data and regenerate image training data. This allows users to modify image data and re-train successfully. [#2046](https://github.com/dotnet/machinelearning-modelbuilder/issues/2046) 11 | - Fix DateTime type support for Forecasting scenario and Evaluate page. [#2166](https://github.com/dotnet/machinelearning-modelbuilder/issues/2166) 12 | - Show working warning message when there is only one image per label for Image Classification scenario. [#2256](https://github.com/dotnet/machinelearning-modelbuilder/issues/2256) 13 | - Remove Notebook generation option from Consume page.[#2277](https://github.com/dotnet/machinelearning-modelbuilder/issues/2277) 14 | 15 | ### Azure 16 | - Update Azure ML Compute support to the new [NCv3 series](https://learn.microsoft.com/en-us/azure/virtual-machines/ncv3-series) and [NCasT4_v3 series](https://learn.microsoft.com/en-us/azure/virtual-machines/nct4-v3-series). Existing configurations with `STANDARD_NC6`, `STANDARD_NC12`, `STANDARD_NC24`, `STANDARD_NC24R` will continue to work until Azure discontinues their support. [#1702](https://github.com/dotnet/machinelearning-modelbuilder/issues/1702) 17 | - Fix authentication when targeting non-Global Azure clouds (e.g. Azure US Government, Azure China, Azure German). [#2134](https://github.com/dotnet/machinelearning-modelbuilder/issues/2134) 18 | 19 | ### SQL Improvements 20 | - Add sample code for loading data from SQL in the generated Console App project. 21 | - Escape column names in the generated query string used by Model Builder. [#2070](https://github.com/dotnet/machinelearning-modelbuilder/issues/2070) 22 | - Correctly ignore columns specified in column settings. [#1504](https://github.com/dotnet/machinelearning-modelbuilder/issues/1504) 23 | 24 | ### Known Issues 25 | - For some builds of Visual Studio after 17.3.0, it is unclear if Image Classification on GPU is running. No display output is shown [#2343](https://github.com/dotnet/machinelearning-modelbuilder/issues/2343) **To work around this problem, please run `set TF_CPP_MIN_LOG_LEVEL=3` from a developer command prompt.** 26 | - Package update for ML.NET 2.0 may fail with a message of "Package restore failed. Rolling back package changes for {MyProject}". **To work around the problem you can manually update the package.** Right click on the MyProject.csproj file and select "Manage NuGet Packages". Go to "Installed" section and update the ML.NET extension to 2.0. [#2351](https://github.com/dotnet/machinelearning-modelbuilder/issues/2351) 27 | 28 | -------------------------------------------------------------------------------- /docs/release-notes/16.14.2.md: -------------------------------------------------------------------------------- 1 | ### Improvements 2 | - Change the extension of generated models from .zip to .mlnet. [Issue 1738](https://github.com/dotnet/machinelearning-modelbuilder/issues/1738) 3 | - Generated training code includes method to load IDataView from the source specified from Data. [Issue 2257](https://github.com/dotnet/machinelearning-modelbuilder/issues/2257) 4 | - Generated consume code includes getting the predicted label category name for classification scenarios. [Issue 2399](https://github.com/dotnet/machinelearning-modelbuilder/issues/2399) 5 | 6 | #### Ignored columns 7 | - In Recommendation and Text Classification, all columns not used are set to ignore state. This is to make it more clear that ML.NET won't use them in training. [Issue 2296](https://github.com/dotnet/machinelearning-modelbuilder/issues/2296) 8 | - Ignored columns aren't shown in Data _Data Preview_ or in Evaluate _Try your model_. [Issue 2115](https://github.com/dotnet/machinelearning-modelbuilder/issues/2115) 9 | 10 | ### General Bugs 11 | - Increased AzCopy version to 10.16.2. [Issue #2348](https://github.com/dotnet/machinelearning-modelbuilder/issues/2348) 12 | - Generated projects cannot have the same name as the .mbconfig file to avoid naming collisions. [Issue 2412](https://github.com/dotnet/machinelearning-modelbuilder/issues/2412) 13 | - Fast Forest Regression has an index out of bounds error. Model Builder has updated ML.NET reference to the fixed version. [Issue 2389](https://github.com/dotnet/machinelearning-modelbuilder/issues/2389) 14 | 15 | ### Text Classification Bugs 16 | - Enable GPU prediction in generated code for Text Classification scenario. [Issue 2356](https://github.com/dotnet/machinelearning-modelbuilder/issues/2356) 17 | - On Text Classification reload the Consume _Code snippet_ is not empty. [Issue 2383](https://github.com/dotnet/machinelearning-modelbuilder/issues/2383) 18 | - Use new Text Classification scenario icon. [Issue 2374](https://github.com/dotnet/machinelearning-modelbuilder/issues/2374) 19 | 20 | -------------------------------------------------------------------------------- /docs/release-notes/16.14.3.md: -------------------------------------------------------------------------------- 1 | ### Bug fixes for version [16.14.2](https://github.com/dotnet/machinelearning-modelbuilder/blob/main/docs/release-notes/16.14.2.md) 2 | 3 | - For forecasting scenario, the value for metric "MAPE" should be non-negative. [Issue 2314](https://github.com/dotnet/machinelearning-modelbuilder/issues/2314) 4 | - Filter null lables for single and date time types. [Issue 2437](https://github.com/dotnet/machinelearning-modelbuilder/issues/2437) 5 | -------------------------------------------------------------------------------- /docs/release-notes/16.14.4.md: -------------------------------------------------------------------------------- 1 | - Update GPU capabilities. **ML.NET Model Builder GPU Support extension is no longer needed** and will be deprecated. 2 | - Add Sentence Similarity scenario to Model Builder. [Issue 2330](https://github.com/dotnet/machinelearning-modelbuilder/issues/2330) 3 | -------------------------------------------------------------------------------- /docs/release-notes/16.15.0 and 17.15.0.md: -------------------------------------------------------------------------------- 1 | # Model Builder 16.15.0 (VS2019) and 17.15.0 (VS2022) Release 2 | 3 | - Add Validation dataset option in Advanced Data [Issue 2396](https://github.com/dotnet/machinelearning-modelbuilder/issues/2396) 4 | - Add PFI Code to `evaluate.cs` [Issue 2375](https://github.com/dotnet/machinelearning-modelbuilder/issues/2375) 5 | - Improved internal Model Builder code for how images are loaded to handle changes to source image folder. 6 | - Resolved Azure Training issue where dataset couldn't be resolved [Issue 2568](https://github.com/dotnet/machinelearning-modelbuilder/issues/2568) 7 | - Fixed `*.map.json` files not being nested under their corresponding `*.mbconfig` file. 8 | -------------------------------------------------------------------------------- /docs/release-notes/16.6.0.2130907.md: -------------------------------------------------------------------------------- 1 | ### Model Builder is config based & can be reloaded 2 | This is a very big change! See more details in our previous [announcment blog](https://devblogs.microsoft.com/dotnet/ml-net-and-model-builder-march-updates/#config-based-training-with-generated-code-behind-files). 3 | - Support multiple Model Builder instances per project 4 | - Reload previous sessions 5 | - Generate editable config file that backs Model Builder experience 6 | - Allow Sql Server Connection Settings to be Saved [#1307](https://github.com/dotnet/machinelearning-modelbuilder/issues/1307) 7 | 8 | #### Advanced data options 9 | - Advanced data options offers more comprehensive list of options - column purpose, column type, and if the column is categorical. 10 | - Add support for Recommendation in the Advanced Data Options dialog [#1398](https://github.com/dotnet/machinelearning-modelbuilder/issues/1398) 11 | ![image](https://user-images.githubusercontent.com/9122518/121247274-acba2880-c867-11eb-9626-8e3c09ae2c73.png) 12 | 13 | ### Generate Console or Web API project on demand 14 | - Allow generated project names to be specified [#1385](https://github.com/dotnet/machinelearning-modelbuilder/issues/1385) 15 | - Console project can be re-added [#1167](https://github.com/dotnet/machinelearning-modelbuilder/issues/1167) & [#1163](https://github.com/dotnet/machinelearning-modelbuilder/issues/1163) 16 | 17 | ![image](https://user-images.githubusercontent.com/9122518/121251583-a7aba800-c86c-11eb-88ac-eb8372f880eb.png) 18 | 19 | 20 | ### Other fixes 21 | - Provide additional information about installed GPU configuration [#1152](https://github.com/dotnet/machinelearning-modelbuilder/issues/1152) 22 | - Wrong decimal separator in the generated Model.training.cs file [#1475](https://github.com/dotnet/machinelearning-modelbuilder/issues/1475) 23 | - Cancelling training shouldn't discard current results [#697](https://github.com/dotnet/machinelearning-modelbuilder/issues/697) 24 | - Use binary classification when specified in by the data [#1211](https://github.com/dotnet/machinelearning-modelbuilder/issues/1211) 25 | - Performance improvements for large datasets [811](https://github.com/dotnet/machinelearning-modelbuilder/issues/811) 26 | -------------------------------------------------------------------------------- /docs/release-notes/16.6.3.2136603.md: -------------------------------------------------------------------------------- 1 | ### .NET Framework Project Support 2 | 3 | - Enable "Add Machine Learning" for Framework projects [#1511](https://github.com/dotnet/machinelearning-modelbuilder/issues/1511) 4 | -------------------------------------------------------------------------------- /docs/release-notes/16.7.3.2143002.md: -------------------------------------------------------------------------------- 1 | ### Improve consumption code 2 | - Update generated Web API Project to .NET 6 Minimal API. [#1605](https://github.com/dotnet/machinelearning-modelbuilder/issues/1605) 3 | - Improve the performance of Predict method in Consumption.cs code file. [#1567](https://github.com/dotnet/machinelearning-modelbuilder/issues/1567) [#1419](https://github.com/dotnet/machinelearning-modelbuilder/issues/1419) 4 | 5 | ### Usability 6 | - Update to MLNet 1.6.0. ARM devices are now supported. [#1658](https://github.com/dotnet/machinelearning-modelbuilder/issues/1658) 7 | - Fix SQL Server Authentication (SQL username and password) [#1540](https://github.com/dotnet/machinelearning-modelbuilder/issues/1540) 8 | - Fix new Azure ML Workspace create experience. Users creating their first ML Workspace ran into a blocking key vault bug. This is now fixed. [#1104](https://github.com/dotnet/machinelearning-modelbuilder/issues/1104), [#1492](https://github.com/dotnet/machinelearning-modelbuilder/issues/1492), [#1654](https://github.com/dotnet/machinelearning-modelbuilder/issues/1654) 9 | - Multiple installed version of CUDA do not block GPU training. Only requirment is Cuda 10.1 is installed and Cuda_Path_v10_1 is set. [#1642](https://github.com/dotnet/machinelearning-modelbuilder/issues/1642) 10 | - Binary classification used when specified. Set label column type to "boolean" in the Advanced Data Options to use binary classification. [#1211](https://github.com/dotnet/machinelearning-modelbuilder/issues/1211) 11 | 12 | ### Performance 13 | - Better AutoML. Improve CFO turner and implement random start. [#1505](https://github.com/dotnet/machinelearning-modelbuilder/issues/1505) 14 | - Improve memory efficiency in data pre-processing: Fix Array dimensions exceeded supported range [#1561](https://github.com/dotnet/machinelearning-modelbuilder/issues/1561), Parsing failed with an exception: Stream reading encountered exception [#1583](https://github.com/dotnet/machinelearning-modelbuilder/issues/1583) 15 | 16 | ### UI fixes 17 | - Replace Image Classification folder picker with file picker filtered to folders. [#394](https://github.com/dotnet/machinelearning-modelbuilder/issues/394) 18 | - Improved usability of Advanced Data Options. Increase size of the name column and add tooltip for long names. [#1534](https://github.com/dotnet/machinelearning-modelbuilder/issues/1534) 19 | - Rename confusing "Text classification" to "Data classification" [#1710](https://github.com/dotnet/machinelearning-modelbuilder/issues/1710) 20 | 21 | ### Other fixes 22 | - Progress is not reset if the Scenario card is re-clicked from the Scenario tab. [#1387](https://github.com/dotnet/machinelearning-modelbuilder/issues/1387) 23 | - `Value cannot be null` error on data source type change [#1528](https://github.com/dotnet/machinelearning-modelbuilder/issues/1528) 24 | - Fix Train tab shows lowest accuracy run on reload [#1663](https://github.com/dotnet/machinelearning-modelbuilder/issues/1663) 25 | -------------------------------------------------------------------------------- /docs/release-notes/16.7.6.2150402.md: -------------------------------------------------------------------------------- 1 | ### Notebook Support 2 | Check out our preview extension Notebook Editor! Generate an interactive Notebook from the Consume tab to explore your code. 3 | 4 | ![image](https://user-images.githubusercontent.com/9122518/135922340-8fd53246-1a46-44f2-8905-e751d4246cfc.png) 5 | 6 | ### Other fixes 7 | - Fix languages using "," as the default decimal separator were not able to train an Object Detection model. [#1701](https://github.com/dotnet/machinelearning-modelbuilder/issues/1701) 8 | - Increase max training time from 24 days to 248 days [#1532](https://github.com/dotnet/machinelearning-modelbuilder/issues/1532) 9 | - Fix Web API project generation for VS 2019. In release [16.7.3.2143002](16.7.3.2143002.md) we updated the Web API to use .NET 6. This isn't supported in VS 2019. Reverting Web API generation for VS 2019 to fix the targeted framework. [#1664](https://github.com/dotnet/machinelearning-modelbuilder/issues/1664) 10 | -------------------------------------------------------------------------------- /docs/release-notes/16.9.1.md: -------------------------------------------------------------------------------- 1 | - Update to ONNX Runtime 1.9.0. [Issue 1775](https://github.com/dotnet/machinelearning-modelbuilder/issues/1775) 2 | - Update to ML.NET 1.7.0 [Issue 1944](https://github.com/dotnet/machinelearning-modelbuilder/issues/1944) 3 | - Binding expression characters (e.g. `.`, `()`. or `[]`) cause a problem in the Data Preview grid. [Issue 1105](https://github.com/dotnet/machinelearning-modelbuilder/issues/1105) 4 | - Problems when switching from CPU to Azure for Image training. [Issue 1755](https://github.com/dotnet/machinelearning-modelbuilder/issues/1755) and [Issue 1267](https://github.com/dotnet/machinelearning-modelbuilder/issues/1267) 5 | - GPU extension showing as missing when there is a version mismatch. Now we correctly inform the user to upgrade Model Builder and GPU extensions to have the same version number. [Issue 1751](https://github.com/dotnet/machinelearning-modelbuilder/issues/1751) 6 | - Show helpful error when new .mbconfig file is opened. Model Builder should always know how to open old .mbconfig files, but in the future an old version of Model Builder might be used to try to open a newer version of .mbconfig file. We should handle this gracefully. [Issue 1818](https://github.com/dotnet/machinelearning-modelbuilder/issues/1818) 7 | - `Input string was not in a correct format` when using comma for decimal format and data has a large sample size. [Issue 1921](https://github.com/dotnet/machinelearning-modelbuilder/issues/1921) 8 | - Image classifiction allows bitmap image as input. [Issue 967](https://github.com/dotnet/machinelearning-modelbuilder/issues/967) 9 | - Fix generated code has empty prediction score. [Issue 1915](https://github.com/dotnet/machinelearning-modelbuilder/issues/1915) 10 | -------------------------------------------------------------------------------- /docs/release-notes/16.9.2.md: -------------------------------------------------------------------------------- 1 | Fix GPU extension showing as not installed. [Issue 1968](https://github.com/dotnet/machinelearning-modelbuilder/issues/1968) 2 | -------------------------------------------------------------------------------- /docs/release-notes/16.9.3.md: -------------------------------------------------------------------------------- 1 | VS 2022 Model Builder reverts to an older version after updating another extension. Fix Issue [1842](https://github.com/dotnet/machinelearning-modelbuilder/issues/1842) 2 | -------------------------------------------------------------------------------- /docs/release-notes/17.16.0 and 16.16.0.md: -------------------------------------------------------------------------------- 1 | # Model Builder 16.16.0 (VS2019) and 17.16.0 (VS2022) Release 2 | 3 | ## New Features 4 | - Local Object Detection && Enhancing [Issue 2333](https://github.com/dotnet/machinelearning-modelbuilder/issues/2333), [Issue 2610](https://github.com/dotnet/machinelearning-modelbuilder/issues/2610) 5 | 6 | ## Bug Fixes 7 | - Single float column being set to string [Issue 2478](https://github.com/dotnet/machinelearning-modelbuilder/issues/2478) 8 | - Tensorflow runtime fail to install when there's space in user name folder [Issue 2621](https://github.com/dotnet/machinelearning-modelbuilder/issues/2621) 9 | - Label missing | Data path blank [Issue 2623](https://github.com/dotnet/machinelearning-modelbuilder/issues/2623) 10 | -------------------------------------------------------------------------------- /docs/release-notes/17.17.0 and 16.17.0.md: -------------------------------------------------------------------------------- 1 | # Model Builder 16.17.0 (VS2019) and 17.17.0 (VS2022) Release 2 | 3 | ## New Features 4 | - More settings in advanced training option [Issue 2507](https://github.com/dotnet/machinelearning-modelbuilder/issues/2507) 5 | - Evaluation code generation for object detection [Issue 2715](https://github.com/dotnet/machinelearning-modelbuilder/issues/2715) 6 | - Improve training experience on large dataset [Issue 2708](https://github.com/dotnet/machinelearning-modelbuilder/issues/2708) 7 | - Relative path support for `ModelFilePath` [Issue 2639](https://github.com/dotnet/machinelearning-modelbuilder/issues/2639) 8 | - Adding Graph code for evaluation [Issue 2470](https://github.com/dotnet/machinelearning-modelbuilder/issues/2470) 9 | - Enabled Azure Object detection evaluation dataset pass [Issue 2662](https://github.com/dotnet/machinelearning-modelbuilder/issues/2662) 10 | 11 | ## Bug Fixes 12 | - Accessibility Fixes (Thanks @Zewditu) 13 | - Wrap over long messages [Issue 2590](https://github.com/dotnet/machinelearning-modelbuilder/issues/2590) 14 | - SQL connection not valid when connection string contains "Command Timeout" [Issue 2646](https://github.com/dotnet/machinelearning-modelbuilder/issues/2646) 15 | - VS crash after choosing a different csv and picking a column [Issue 718](https://github.com/dotnet/machinelearning-modelbuilder/issues/2718) 16 | -------------------------------------------------------------------------------- /docs/release-notes/17.18.0 and 16.18.0.md: -------------------------------------------------------------------------------- 1 | # Model Builder 17.18.0 (VS2022) and 16.18.0 (VS2019) Release 2 | 3 | ## New Features 4 | - Adding Question Asnwering (QA) scenario [Issue 2332](https://github.com/dotnet/machinelearning-modelbuilder/issues/2332) 5 | - Adding Named Entitiy Recogntion (NER) scenario [Issue 2331](https://github.com/dotnet/machinelearning-modelbuilder/issues/2331) 6 | 7 | 8 | ## Bug Fixes 9 | - Not able to install on arm system [ Issue 2783](https://github.com/dotnet/machinelearning-modelbuilder/issues/2783) 10 | - JSON-RPC related issues 11 | [ Issue 2794](https://github.com/dotnet/machinelearning-modelbuilder/issues/2794), 12 | [ Issue 2850](https://github.com/dotnet/machinelearning-modelbuilder/issues/2850) and 13 | [ Issue 2842](https://github.com/dotnet/machinelearning-modelbuilder/issues/2842) 14 | - fail to install runtime [ Issue 2737](https://github.com/dotnet/machinelearning-modelbuilder/issues/2737) 15 | 16 | 17 | -------------------------------------------------------------------------------- /file-an-issue.md: -------------------------------------------------------------------------------- 1 | File an issue to help us improve. 2 | 3 | Choose from one of our [issue templates](https://github.com/dotnet/machinelearning-modelbuilder/issues/new/choose) to report a bug or request new features. 4 | 5 | ## Issue guidance 6 | 7 | **Search first:** Search for duplicate issues to save time. [See all open GitHub issues](https://github.com/dotnet/machinelearning-modelbuilder/issues). Try and find issues that are exactly or closely related to the bug or feature request you want and provide feedback on the original issue. If none of the open issues resembly what you're looking at, file a new one. 8 | 9 | **Use specific titles:** Provide clear titles and details, and share your research to help us understand your feedback. 10 | 11 | **Separate bugs:** If there are multiple problems, submit them as separate issues. 12 | 13 | - [Report an issue now.](https://github.com/dotnet/machinelearning-modelbuilder/issues/new?assignees=&labels=&template=bug_report.md&title=) 14 | - [Request a new feature.](https://github.com/dotnet/machinelearning-modelbuilder/issues/new?assignees=&labels=&template=feature_request.md&title=) 15 | 16 | ## Issue process 17 | 18 | For more information on how we process issues, see the [issue process guide](docs/process/IssueProcess.md). -------------------------------------------------------------------------------- /gpu-instructions.md: -------------------------------------------------------------------------------- 1 | # How to use GPU in Model Builder 2 | 3 | Learn how to install the GPU drivers to use your GPU with Model Builder. 4 | 5 | ## Prerequisites 6 | 7 | - Model Builder Visual Studio extension 8 | - Model Builder Visual Studio GPU extension 9 | - At least one CUDA compatible GPU. For a list of compatible GPUs see [NVIDIA's guide](https://developer.nvidia.com/cuda-gpus). 10 | - NVIDIA developer account. If you don't have one, [create a free account](https://developer.nvidia.com/developer-program). 11 | 12 | ## Install dependencies 13 | 14 | 1. Install [CUDA v10.0](https://developer.nvidia.com/cuda-10.0-download-archive). Make sure you install CUDA v10.0, not any other newer version. You cannot have multiple versions of CUDA installed. 15 | 1. Install [cuDNN v7.6.4 for CUDA 10.0](https://developer.nvidia.com/rdp/cudnn-download). You cannot have multiple versions of cuDNN installed. 16 | 1. After downloading cuDNN v7.6.4 zip file and unpacking it, copy `\cuda\bin\cudnn64_7.dll` to `\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin`. 17 | 18 | ## Troubleshooting 19 | 20 | **How do I know what GPU I have?** 21 | 22 | Follow instructions provided by NVIDIA: 23 | 24 | 1. Right-click on desktop 25 | 1. If you see "NVIDIA Control Panel" or "NVIDIA Display" in the pop-up window, you have an NVIDIA GPU 26 | 1. Click on "NVIDIA Control Panel" or "NVIDIA Display" in the pop-up window 27 | 1. Look at "Graphics Card Information" 28 | 1. You will see the name of your NVIDIA GPU 29 | 30 | **I don't see NVIDIA Control Panel (or it fails to open) but I know I have an NVIDIA GPU.** 31 | 32 | 1. Open Device Manager 33 | 1. Look at Display adapters 34 | 1. Install appropriate [driver](https://www.nvidia.com/drivers) for your GPU. -------------------------------------------------------------------------------- /troubleshooting/ModelBuilderFAQ.md: -------------------------------------------------------------------------------- 1 | # Model Builder FAQ 2 | 3 | ## Why isn't GPU supported for my scenario? 4 | 5 | Model Builder supports GPU Training for tasks where the advantages outweigh the costs. For many scenarios, the cost of moving the data to the GPU outweighs the benefits the GPU provides. Currently only Image Classification and Object Detection support GPU training in Model Builder, while Data Classification, Value Prediction, Recommendation, Forecasting do not. 6 | 7 | Want more info? Check out this [blog](https://dasha.ai/en-us/blog/pytorch-ml.net-inference-performance-comparison) written by the folks at Dasha, or see info provided by community members [torronen](https://github.com/dotnet/machinelearning/issues/5873#issuecomment-1034074969) and [jucchytil](https://github.com/dotnet/machinelearning-modelbuilder/issues/1158#issuecomment-759190047). 8 | -------------------------------------------------------------------------------- /troubleshooting/ModelBuilderTroubleshooting.md: -------------------------------------------------------------------------------- 1 | # Troubleshooting for Model Builder 2 | If troubleshooting does not solve the problem, please file a bug [here](https://github.com/dotnet/machinelearning-modelbuilder/issues/new?template=bug_report.md). 3 | 4 | ## Cannot run code from tutorial because PredictedLabel does not exist 5 | 6 | In a newer version of ML.NET the property `Prediction` was renamed to `PredictedLabel`. You are referencing an older version of ML.NET. There are a few options for resolving this. 7 | - Change `PredictedLabel` to `Prediction`. 8 | - Update ML.NET to 1.7.1 9 | - Update Model Builder version to the [latest]([url](https://marketplace.visualstudio.com/items?itemName=MLNET.ModelBuilder2022)) and re-train the model 10 | 11 | ## GPU Extension isn't installed 12 | 13 | You've installed the GPU extension but it's giving the message "GPU extension not installed"? **The ML.NET Model Builder extension and ML.NET Model Builder GPU Support extension versions must match.** Unfortunately older versions of Model Builder did not include this information in the error message and simply say the extension is not installed. 14 | 15 | Open the "Manage Extensions" tool in VS and ensure you have installed the same version of Model Builder 2019/2022 and Model Builder GPU 2019/2022. There are separate extensions for each VS version. They can be installed from the [VS Marketplace](https://marketplace.visualstudio.com/search?term=ML.NET&target=VS&category=Tools&vsVersion=&subCategory=All&sortBy=Relevance). 16 | 17 | ## Reset VS 18 | 19 | Sometimes Model Builder doesn't update correctly and VS is still referencing older Model Builder code. If uninstalling and re-installing Model Builder doesn't work, we recommend doing a [clean install of VS](https://docs.microsoft.com/en-us/visualstudio/install/uninstall-visual-studio?view=vs-2019#remove-all-with-installcleanupexe). 20 | 21 | ## I cannot "Add Machine Learning" to my project 22 | 23 | "Add Machine Learning" isn't an option in the right click menu: 24 | 1. Model Builder can only be added to C# projects. VB is not supported at this time. 25 | 2. Is the extension installed and enabled? You may have disabled the extension at some point due to a performance warning. Check _Extensions -> Manage Extensions -> Installed_. ML.NET Model Builder should be listed and enabled. 26 | 3. Is it a UWP Project? There is a known issue - [#1715](https://github.com/dotnet/machinelearning-modelbuilder/issues/1715). Current work around is to create an empty file with extension '.mbconfig'. In VS the file should open in the Model Builder experience. 27 | 28 | I've clicked "Add Machine Learning" and nothing happened or an error happened: 29 | 1. The first time "Add Machine Learning" is clicked VS will prompt you to enable the feature (different than the extension being enabled). You can find this setting in _Options -> Environment -> Preview Features -> Enable ML.NET Model Builder._ After the feature is enabled you'll need to click "Add Machine Learning" again. 30 | 2. Are you using a .NET Framework 4.7.2 version project? We have a [bug](https://github.com/dotnet/machinelearning-modelbuilder/issues/1511) for framework projects in Model Builder version 16.6.1.2131904. Update your version or use "Add New Item" window instead. 31 | 32 | ## Dev Team Cannot Reproduce (no constant repro on other machines) 33 | 34 | Some users of VS Preview Builds have run into a problem that despite the extension manager reporting the newest version is installed, an older UI is showing. This is a bug in our extension versioning and you need to completely uninstall Model Builder to resolve. 35 | 36 | To fix... 37 | 38 | 1. Uninstall (or revert) Model Builder from the Extension Manager (in VS: Extensions -> Manage Extensions) and from the VS Installer (in Visual Studio Installer -> Modify Version -> .NET Desktop Development -> ML.NET Model Builder Preview) 39 | - If you encounter a problem removing Model Builder from the VS Installer, it can be a sign that your Model Builder extension installation had been corrupted (this happened for a few preview builds in 2020). You may need to uninstall that version of VS. 40 | 2. Ensure Model Builder has been completely removed from this version of VS. It should not show in the extension manager or on right click -> Add Machine Learning. 41 | 3. Reinstall Model Builder in the VS Installer. Update to the latest version from the [marketplace](https://marketplace.visualstudio.com/items?itemName=MLNET.07&ssr=false#overview). 42 | 43 | You should now see an updated UI similar to... 44 | ![image](https://user-images.githubusercontent.com/9122518/113899044-06cc3e00-9792-11eb-85e4-79a6b0d747e6.png) 45 | 46 | 47 | ## Runtime error in code: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ML.Data'. 48 | 49 | Most likely you added Machine Learning to a .NET Full Framework project. The `System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ML.Data'` error is caused by a mismatch in Nuget reference styles between your .NET Full Framework project and Model Builder's generated .NET core projects. 50 | 51 | To resolve the problem you will need to make your project compatible with our .NET core projects by using [PackageReference](https://docs.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files). Here are a few options... 52 | 53 | 1. If experimenting with a new project, start again with a new .NET Core project. 54 | 2. If you have a new .NET Framework project it may already be in PackageReference format. PackageReference format will still fail if it has no references added. If you have no packages.config file this is likely your situation. You can get unblocked by... 55 | - Set the target platform to x64 56 | `x64` 57 | - Set `PackageReference`. Find more information on this attribute [here](https://docs.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#using-packagereference-for-a-project-with-no-packagereferences). 58 | 3. If you have a packages.config file you will need to update to PackageReference. See documentation on how to do that [here](https://docs.microsoft.com/en-us/nuget/consume-packages/migrate-packages-config-to-package-reference). 59 | 4. Some projects have limited PackageReference capabilities. If this is the case you may need to update to .NET Core. See this [blog](https://www.hanselman.com/blog/UpgradingAnExistingNETProjectFilesToTheLeanNewCSPROJFormatFromNETCore.aspx) by Scott Hanselman for more help. 60 | --------------------------------------------------------------------------------