微软发布了其最新版本的机器学习框架:ML.NET 0.11带来了新功能和突破性变化。

ML.NET 0.11发布:.NET中的机器学习,具有TensorFlow和ONNX的新功能

ML.NET 0.11就在这里。新版本的机器学习开源框架为TensorFlow和ONNX添加了新功能,但也包括一些重大变化, 这也是发布RC版本之前的最后一个预览版,这个月底将发布0.12版本,也就是RC1。

ML.NET的创新0.11
0.11 版本的ML.NET现在还支持 TensorFlowTransformer组件中的文本输入数据。TensorFlow模型不仅可用于图像,还可用于文本分析。这在.NET博客的代码示例中进行了说明,该博客使用TensorFlow模型进行感觉分析:

public class TensorFlowSentiment

{

public string Sentiment_Text;

[VectorType(600)]

public int[] Features;

[VectorType(2)]

public float[] Prediction;

}

[TensorFlowFact]

public void TensorFlowSentimentClassificationTest()

{

var mlContext = new MLContext(seed: 1, conc: 1);

var data = new[] { new TensorFlowSentiment() { Sentiment_Text = "this film was just brilliant casting location scenery story direction everyone's really suited the part they played and you could just imagine being there robert is an amazing actor and now the same being director father came from the same scottish island as myself so i loved the fact there was a real connection with this film the witty remarks throughout the film were great it was just brilliant so much that i bought the film as soon as it was released for and would recommend it to everyone to watch and the fly fishing was amazing really cried at the end it was so sad and you know what they say if you cry at a film it must have been good and this definitely was also to the two little boy's that played the of norman and paul they were just brilliant children are often left out of the list i think because the stars that play them all grown up are such a big profile for the whole film but these children are amazing and should be praised for what they have done don't you think the whole story was so lovely because it was true and was someone's life after all that was shared with us all" } };

var dataView = mlContext.Data.ReadFromEnumerable(data);

var lookupMap = mlContext.Data.ReadFromTextFile(@"sentiment_model/imdb_word_index.csv",

columns: new[]

{

new TextLoader.Column("Words", DataKind.TX, 0),

new TextLoader.Column("Ids", DataKind.I4, 1),

},

separatorChar: ','

);

var estimator = mlContext.Transforms.Text.TokenizeWords("TokenizedWords", "Sentiment_Text")

.Append(mlContext.Transforms.Conversion.ValueMap(lookupMap, "Words", "Ids", new[] { ("Features", "TokenizedWords") }));

var dataPipe = estimator.Fit(dataView)

.CreatePredictionEngine<TensorFlowSentiment, TensorFlowSentiment>(mlContext);

string modelLocation = @"sentiment_model";

var tfEnginePipe = mlContext.Transforms.ScoreTensorFlowModel(modelLocation, new[] { "Prediction/Softmax" }, new[] { "Features" })

.Append(mlContext.Transforms.CopyColumns(("Prediction", "Prediction/Softmax")))

.Fit(dataView)

.CreatePredictionEngine<TensorFlowSentiment, TensorFlowSentiment>(mlContext);

//Predict the sentiment for the sample data

var processedData = dataPipe.Predict(data[0]);

Array.Resize(ref processedData.Features, 600);

var prediction = tfEnginePipe.Predict(processedData);

}沈阳市哪里看胃病好www.sdgc120.com
还为MLContext目录添加了其他机器学习组件。这应该可以更容易地找到类和操作。该图显示了基于智能提示的用户体验。

该ONNX组件还进行了重构:Microsoft.ML.ONNX 更改为 Microsoft.ML.ONNXConverter 和Microsoft.ML.ONNXTrans .FORM更改为Microsoft.ML.ONNXTransformer 。这更清晰的表达ONNX转换和转换之间的区别。ONNX是一种开放且可互操作的模型格式,允许您在框架中训练模型,以及在另一个框架中使用。例如:Scikit-learn 或TensorFlow 训练的模型放到 在ML.NET中使用。

与之前版本的ML.NET 0.10相比,ML.NET 0.11包含一些重大更改,包括删除Microsoft.ML.Core命名空间。破坏性性更改 列表已发布在GitHub上。有关ML.NET 0.11中的新功能的更详细信息参见 .NET博客文章:https://devblogs.microsoft.com/dotnet/announcing-ml-net-0-11-machine-learning-for-net/ 。

转载于:https://blog.51cto.com/14236847/2361722

ML.NET 发布0.11版本:.NET中的机器学习,具有TensorFlow和ONNX的新功能相关推荐

  1. ML.NET 发布0.11版本:.NET中的机器学习,为TensorFlow和ONNX添加了新功能

    微软发布了其最新版本的机器学习框架:ML.NET 0.11带来了新功能和突破性变化. 新版本的机器学习开源框架为TensorFlow和ONNX添加了新功能,但也包括一些重大变化, 这也是发布RC版本之 ...

  2. 开源企业级数字化服务平台——Choerodon猪齿鱼发布0.11版本

    Choerodon猪齿鱼是一个开源企业服务平台,基于Kubernetes的容器编排和管理能力,整合DevOps工具链.微服务和移动应用框架,来帮助企业实现敏捷化的应用交付和自动化的运营管理的开源平台, ...

  3. 燕千云 YQCloud 数智化业务服务管理平台发布1.11版本

    2022年3月25日,燕千云 YQCloud 数智化业务服务管理平台发布1.11版本.新增客户服务管理模块.优化IT服务管理功能.增强燕千云与其他平台的集成能力.支持更多的业务服务场景.全面提升企业数 ...

  4. Mysql数据库从5.6.28版本升到8.0.11版本部署项目时遇到的问题及解决方法

    这篇文章主要介绍了Mysql数据库从5.6.28版本升到8.0.11版本过程中遇到的问题及解决方法,解决办法有三种,每种方法给大家介绍的都很详细 mysql数据库版本从5.6.28升到8.0.11过程 ...

  5. 开源多云技术平台——Choerodon猪齿鱼发布0.16版本

    Choerodon猪齿鱼开源多云技术平台,是基于开源技术Kubernetes,Istio,knative,Gitlab,Spring Cloud来实现本地和云端环境的集成,实现企业多云/混合云应用环境 ...

  6. mysql 5.6升级8.0_Mysql数据库从5.6.28版本升到8.0.11版本部署项目时遇到的问题及解决方法...

    MysqL数据库版本从5.6.28升到8.0.11过程中部署项目时遇到的问题和解决方法,具体介绍如下所示: 首先这个项目用到了hibernate4.2.0,链接MysqL5.6.28没问题,换到8.0 ...

  7. vos2009 校验版本超时_开源多云应用平台 Choerodon猪齿鱼发布0.14版本

    Choerodon猪齿鱼是一个开源多云应用平台,基于Kubernetes的容器编排和管理能力,整合DevOps工具链.微服务和移动应用框架,来帮助企业实现敏捷化的应用交付和自动化的运营管理的开源平台, ...

  8. 开源多云应用平台 Choerodon猪齿鱼发布0.14版本

    Choerodon猪齿鱼鱼是一个开源多云应用平台,基于Kubernetes的容器编排和管理能力,整合DevOps工具链.微服务和移动应用框架,来帮助企业实现敏捷化的应用交付和自动化的运营管理的开源平台 ...

  9. 开源多云技术平台——Choerodon猪齿鱼发布0.19版本

    Choerodon猪齿鱼开源多云技术平台,是基于开源技术Kubernetes,Istio,knative,Gitlab,Spring Cloud来实现本地和云端环境的集成,实现企业多云/混合云应用环境 ...

最新文章

  1. vue-cli-service 不是内部或者外部命令的解决办法(用了你就知道了)
  2. 当凡尔赛文学遇上产品经理
  3. 怎么这两天总能看到刺激我的好东西
  4. RabbitMQ交换器Exchange介绍与实践
  5. java 13个核心技术3
  6. 日常踩坑:odule ‘tensorflow‘ has no attribute ‘placeholder‘解决方案
  7. MVC3中Ajax.ActionLink用法
  8. 三大统计相关系数:Pearson、Spearman秩相关系数、kendall等级相关系数
  9. python画三维图-Python+matplotlib绘制三维图形5个精选案例
  10. python使用redis做缓存_Python的Flask框架使用Redis做数据缓存的配置方法
  11. DRM in Android详解
  12. 第129章 SQL函数 %SQLUPPER
  13. 2018年就要过去了
  14. ThreadLocal的短板,我TTL来补
  15. 你竟然还不知道电脑上的F1-F12快捷键的作用
  16. 区块链到底是不是骗局
  17. 【无2022起重信号司索工(建筑特殊工种)考试题模拟考试题库及模拟考试
  18. python中pyecharts 柱状图 折线图混用_Python3 pyecharts生成Html文件柱状图及折线图代码实例...
  19. 华硕ASUS-X53S拆机升级
  20. CS:APP archlab 记录

热门文章

  1. leetcode easy problem set
  2. angularjs 服务详解
  3. html传值 location.search取
  4. [RMAN]数据文件的恢复
  5. Linux 如何将eth1网卡修改为eth0
  6. linux之软连接和硬连接的区别
  7. oracle 概念复习,oracle复习整理
  8. VIM 下工程的管理工具
  9. C#判断联网状态检查电脑联网状态
  10. window powershell 筛选