cuppersd / cplusplus-model-pytorch Goto Github PK
View Code? Open in Web Editor NEWCplusplus-Model-Pytorch
License: MIT License
Cplusplus-Model-Pytorch
License: MIT License
我的样本只有两类,在得到torch模型进行推断时,打印输出结果result时,分析了下预测结果是这样的:
正确时:
[ Variable[CPUFloatType]{1,3,32,32} ]
result: 6.3312 -6.1031
[ Variable[CPUFloatType]{1,2} ]
max_index:0
错误时:
[ Variable[CPUFloatType]{1,3,32,32} ]
result:-1.9040 2.0092
[ Variable[CPUFloatType]{1,2} ]
max_index:1
不论是正样本还是负样本,测试结果都是以上这种形式。我想要的不是预测对错,而是标签。请问怎么才能获得我预测的标签呢?谢谢!~
补充: 我的正样本标签是0, 负样本标签是1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.