Giter Site home page Giter Site logo

cplusplus-model-pytorch's People

Contributors

cuppersd avatar

Stargazers

 avatar

cplusplus-model-pytorch's Issues

推断结果只显示错误还是正确,请问怎么得到预测标签呢?

我的样本只有两类,在得到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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.