responsibility pattern chain cpp

机器学习经典教材《模式识别与机器学习》,Pattern Recognition and Machine Learning,PRML官方开放免费下载

微软剑桥研究院实验室主任Christopher Bishop的经典著作《模式识别与机器学习》,Pattern Recognition and Machine Learning,简称PRML,被微软“开源”了。 本书介绍&下载页:(书的介绍页面) https://www.microsoft.com/e ......
机器 Recognition Learning 教材 Pattern

typesciprt: Command Pattern

/** * * Command Pattern 命令是一种行为设计模式, 它可将请求或简单操作转换为一个对象。 * file: Commandts.ts * The Command interface declares a method for executing a command. * */ i ......
typesciprt Command Pattern

typescript: Mediator pattern

/** * * Mediator pattern 中介者是一种行为设计模式, 让程序组件通过特殊的中介者对象进行间接沟通, 达到减少组件之间依赖关系的目的。 * file: Mediatorts.ts * The Mediator interface declares a method used b ......
typescript Mediator pattern

cpp中函数参数的默认值

title: aliases: tags: - cpp/函数 category: - 方法 stars: url: creation-time: 2023-10-09 19:24 modification-time: 2023-10-10 14:20:19 [[Cpp]] 函数的默认值写法: voi ......
函数 参数 cpp

使用GoogleTest框架进行cpp代码的基本单元测试

title: aliases: tags: - cpp/单元测试 - cmake - 工程技术 category: - 方法 stars: url: creation-time: 2023-10-11 19:02 modification-time: 这里主要介绍从 0 开始实现基本的单元测试功能。 ......
GoogleTest 框架 单元 代码 cpp

typescript: Template Method pattern

/** * Template Method pattern 模版方法是一种行为设计模式, 它在基类中定义了一个算法的框架, 允许子类在不修改结构的情况下重写算法的特定步骤。 * file: Templatets.ts * The Abstract Class defines a template m ......
typescript Template pattern Method

typescript: State Pattern

/** * State Pattern 状态是一种行为设计模式, 让你能在一个对象的内部状态变化时改变其行为。 * The Context defines the interface of interest to clients. It also maintains a * reference to ......
typescript Pattern State

LLM采样后处理总结:LLM的后处理的cpp实现

LLM采样后处理总结:LLM的后处理的cpp实现 在经过LLM的lm_head之后,会得到[batch, vocab_size]大小的矩阵向量,此时需要对输出的逻辑张量进行采样,除了beam_search的贪心策略,还有repetition_penalty、temperature、top_k、top ......
LLM cpp

typescript: Iterator Pattern

/** * Iterator Pattern 迭代器是一种行为设计模式, 让你能在不暴露复杂数据结构内部细节的情况下遍历其中所有的元素 * file: Iteratorts.ts npm install -g babel-cli * Intent: Lets you traverse element ......
typescript Iterator Pattern

typescript: Memento Pattern

/** * Memento Pattern 备忘录是一种行为设计模式, 允许生成对象状态的快照并在以后将其还原。 * The Originator holds some important state that may change over time. It also * defines a me ......
typescript Memento Pattern

vscode配置代码(cpp编译)

.vscode文件夹内为配置文件 launch.json program选项填写调试时二进制程序的路径 cwd为该文件内调试命令的工作路径 environment为传递给程序入口的参数 preLaunchTask为程序调试前执行的任务,填写对应Tasks的Label tasks.json label ......
代码 vscode cpp

【3rd_Party】Cpp 单元测试框架-gtest

Unit Test 和 gtest 介绍 单元测试( Unit Test ,模块测试)是开发者编写的一小段代码,用于检验被测代码的一个很小的、很明确的功能是否正确,通过编写单元测试可以在编码阶段发现程序编码错误,甚至是程序设计错误。 单元测试不但可以增加开发者对于所完成代码的自信,同时,好的单元测试 ......
3rd_Party 框架 单元 Party gtest

解决 jmeter 压测Non HTTP response code: java.net.NoRouteToHostException/Non HTTP response message: Cannot assign requested address (Address not available)

针对centos : 先检查下tcp port range 在合理范围内: cat /proc/sys/net/ipv4/ip_local_port_range 1024 65535 上述为centos合理范围,不合理作出修改 解决方法:1. 调低端口释放后的等待时间, 默认为60s, 修改为15~ ......

typescript: Chain of Responsibility Pattern

/** * Chain of Responsibility Pattern 责任链是一种行为设计模式, 允许你将请求沿着处理者链进行发送, 直至其中一个处理者对其进行处理。 * file: Chaints.ts * The Handler interface declares a method fo ......
Responsibility typescript Pattern Chain of

src/param.cpp:30:26: fatal error: gsl/gsl_blas.h: No such file or directory

001、问题:安装gemma软件报错 src/param.cpp:30:26: fatal error: gsl/gsl_blas.h: No such file or directory 002、解决方法, 安装gls a、官网下载 http://mirrors.ustc.edu.cn/gnu/g ......
directory gsl gsl_blas param fatal

typescript: Proxy Pattern

/** * Proxy Pattern 代理是一种结构型设计模式, 让你能提供真实服务对象的替代品给客户端使用。 代理接收客户端的请求并进行一些处理 (访问控制和缓存等), 然后再将请求传递给服务对象。 * The Subject interface declares common operatio ......
typescript Pattern Proxy

typescript: Flyweight Pattern

/** * Flyweight Pattern 享元是一种结构型设计模式, 它允许你在消耗少量内存的情况下支持大量对象。 * https://refactoringguru.cn/design-patterns/flyweight/typescript/example#lang-features * ......
typescript Flyweight Pattern

设计模式之 Observer Pattern观察者模式

观察者模式Observer Observer模式为组件向相关接收方【广播】消息提供了灵活的方法; 该模式定义了对象一到多的依赖关系,这样当对象改变状态时,将自动通知并更新他所有的依赖对象; 优点 抽象了主体与Observer之间的耦合关系; 支持广播方式的通信 适用 对一个对象的修改涉及其他对象的修 ......

虚拟环境搭建、luffy后台项目创建,目录调整、封装logger、封装全局异常、封装Response、后台数据库创建、Luffy前台项目创建

虚拟环境搭建 #1 虚拟环境作用 多个项目,自己有自己的环境,装的模块属于自己的 # 2 使用pycharm创建 -一般放在项目路径下:venv文件夹 -lib文件夹 》site-package--》虚拟环境装的模块,都会放在这里 -scripts--》python,pip命令 # 3 本地创建了虚 ......
后台 项目 全局 前台 Response

虚拟环境搭建,luffy后台项目创建、目录调整,封装logger,封装全局异常,封装Response,后台数据库创建,luffy前台项目创建

1 虚拟环境搭建🚜 #1 虚拟环境作用 多个项目,自己有自己的环境,装的模块属于自己的 # 2 使用pycharm创建 -一般放在项目路径下:venv文件夹 -lib文件夹 》site-package--》虚拟环境装的模块,都会放在这里 -scripts--》python,pip命令 # 3 本地 ......
后台 项目 luffy 全局 前台

.net core读取Response.Body

读取请求体流的demo public static async Task<string> GetBodyForm(this HttpContext http) { var content = string.Empty; var request = http.Request; try { reques ......
Response core Body net

socket.io-client-cpp与boost的编译、交叉编译

一、下载socket.io-client-cpp源码 git clone https://github.com/socketio/socket.io-client-cpp.git直接克隆,或者下载release版本源码 二、下载依赖的库rapidjson和websocketpp cd socket. ......
io-client-cpp socket client boost cpp

设计模式之 State Pattern状态模式

State模式允许对象在内部状态变化时,变更其行为,并修改其类; 优点: 定位指定状态的行为,并且针对不同状态来划分行为,使状态转换显式进行; 适用: 对象的行为依赖于其状态,并且该对象必须在运行时根据其状态修改其行为; 操作具有大量的以及多部分组成的取决于对象状态的条件语句; public cla ......
模式 设计模式 状态 Pattern State

harbor登录时报错error parsing HTTP 404 response body: invalid character

**harbor登录时报如下错误: ** [root@localhost TDFW-publish-tar]# docker login --username=user1 192.168.2.10:8090 --password user1_pass WARNING! Using --passwor ......
character response 时报 parsing invalid

typescript: Facade Pattern

/** * Facade pattern 外观是一种结构型设计模式, 能为复杂系统、 程序库或框架提供一个简单 (但有限) 的接口。 * The Facade class provides a simple interface to the complex logic of one or * sev ......
typescript Pattern Facade

typescript: Decorator Pattern

/** * Decorator Pattern 装饰是一种结构设计模式, 允许你通过将对象放入特殊封装对象中来为原对象增加新的行为。 * The base Component interface defines operations that can be altered by * decorato ......
typescript Decorator Pattern

typesciprt: Composite Pattern

/** * Composite Pattern 组合是一种结构型设计模式, 你可以使用它将对象组合成树状结构, 并且能像使用独立对象一样使用它们。 * https://refactoringguru.cn/design-patterns/composite/typescript/example#la ......
typesciprt Composite Pattern

【Cpp】RTTI 机制原理解析

References Baidu Wiki C++中的RTTI机制详解 RTTI 推荐阅读: RTTI 原理 推荐阅读:C++中的RTTI机制 什么是RTTI机制? RTTI 是“Runtime Type Information”的缩写,意思是:运行时类型信息。它提供了运行时确定对象类型的方法。 R ......
原理 机制 RTTI Cpp

System Architecture Patterns All In One

System Architecture Patterns All In One 系统架构模式 ......
Architecture Patterns System All One

Cpp 惯用法 CRTP 简介

From Wikipedia, The curiously recurring template pattern (CRTP) is an idiom, originally in C++, in which a class X derives from a class template insta ......
简介 CRTP Cpp