-
Notifications
You must be signed in to change notification settings - Fork 328
Samples Revamp: ML - Batch Sentiment Analysis #320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Update personal master branch of fork
Update fork's master branch
examples/Microsoft.Spark.CSharp.Examples/Sql/MachineLearning/SentimentAnalysis.cs
Outdated
Show resolved
Hide resolved
examples/Microsoft.Spark.CSharp.Examples/Sql/MachineLearning/SentimentAnalysis.cs
Outdated
Show resolved
Hide resolved
examples/Microsoft.Spark.CSharp.Examples/Sql/MachineLearning/SentimentAnalysis.cs
Outdated
Show resolved
Hide resolved
examples/Microsoft.Spark.CSharp.Examples/Sql/MachineLearning/SentimentAnalysis.cs
Outdated
Show resolved
Hide resolved
ML.NET working in separate project, and other examples still build/compile successfully
Items related to previous version before creating separate project for this app
Reflect most recent folder hierarchy
Since each ML project will have its own folder/solution, can just name their readme's more generally "README.md"
ReviewText instead of Column1, Sentiment instead of Column2
Co-Authored-By: Steve Suh <[email protected]>
Co-Authored-By: Steve Suh <[email protected]>
Co-Authored-By: Steve Suh <[email protected]>
examples/Microsoft.Spark.CSharp.Examples/MachineLearning/Sentiment/Program.cs
Outdated
Show resolved
Hide resolved
examples/Microsoft.Spark.CSharp.Examples/MachineLearning/Sentiment/README.md
Outdated
Show resolved
Hide resolved
Co-Authored-By: Steve Suh <[email protected]>
Want to avoid Path.Combine()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
examples/Microsoft.Spark.CSharp.Examples/MachineLearning/Sentiment/Program.cs
Outdated
Show resolved
Hide resolved
examples/Microsoft.Spark.CSharp.Examples/MachineLearning/Sentiment/Program.cs
Outdated
Show resolved
Hide resolved
|
||
Depending upon the algorithm Model Builder chooses for your ML model, you may need to add an additional nuget reference in [Microsoft.Spark.CSharp.Examples.csproj](../../Microsoft.Spark.CSharp.Examples.csproj). For instance, if you get an error message that Microsoft.ML.FastTree cannot be found when running your Spark app, you need to add that nuget to your csproj file: | ||
|
||
`<PackageReference Include="Microsoft.ML.FastTree" Version="1.3.1" />` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems different from what we are referencing in our csproj?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Steve and I learned that depending on what algorithm is used in the model, you may have to add a different reference in your .csproj. Originally we needed FastTree
, but once I changed to a new model that used a different algorithm, it no longer used FastTree
and thus we could just reference Microsoft.ML
. In case users train and use their own model and then run into issues, we wanted to add this explanation.
examples/Microsoft.Spark.CSharp.Examples/MachineLearning/Sentiment/Program.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @bamurtaugh!
-Add new batch sentiment analysis sample app & readme
-Add Machine Learning folder, and readme folder within it
-Add readme for Machine Learning folder
-Add reference to ML.NET v1.3.1 in C# csproj file