Code Monkey home page Code Monkey logo

hegongshan.github.io's People

Contributors

hegongshan avatar

Stargazers

 avatar

hegongshan.github.io's Issues

CCF CSP | 贺巩山的博客

https://www.hegongshan.com/ccf-csp/

编号 标题 C/C++ Java 备注 201312-1 出现次数最多的数 查看题解 哈希表+排序 201403-1 相反数 查看题解 简单运算 201409-1 相邻数对 查看题解 简单运算 201412-1 门禁系统 查看题解 简单运算 201503-1 图像旋转 查看题解 简单运算 201509-1 数列分段 查看题解 简单运算 201512

推荐系统常用评估指标 | 贺巩山的博客

https://www.hegongshan.com/2019/03/04/recommender-system-evaluation-metrics/

评分预测预测用户对物品评分的行为称为评分预测(rating prediction)。 评分预测的预测准确度一般通过均方根误差(Root Mean Squared Error,简称RMSE)和平均绝对误差(Mean Absolute Error,简称MAE)计算。 对于测试集中的一个用户u和物品i,令$r_{ui}$是用户对物品i的实际评分,而$\hat{r}_{ui}$是推荐算法给出的预测评分。

Java位运算符 | 贺巩山的博客

https://www.hegongshan.com/2018/06/16/java-bitwise-operation/

在讲位运算符之前,我们先来回顾下本科时学过的一些计算机基础知识。 所谓原码就是二进制定点表示法,即最高位为符号位,正数为0,负数为1,其余位表示数值的大小。 反码:正数的反码与其原码相同,负数的反码是其原码逐位求反(符号位除外)。 补码:正数的补码与其原码相同,负数的补码为其反码加1。 整数在内存中是以补码的形式存储的。

关于CSAPP中Datalab模块conditional的题解

/*

  • conditional - same as x ? y : z
  • Example: conditional(2,4,5) = 4
  • Legal ops: ! ~ & ^ | + << >>
  • Max ops: 16
  • Rating: 3
    */
    int conditional(int x, int y, int z) {
    int flag = !x + ~0;
    return (flag & y) | (~flag & y);
    }
    这里是写错了吧,应该是:
    return (flag & y) | (~flag & y); --> return (flag & y) | (~flag & z);

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.