摘要: RotaryEmbedding # 旋转位置嵌入,应用于每一层 Q 和 K class RotaryEmbedding(nn.Module): def __init__(self, dim, rope_ratio=1, original_impl=False, device=None, dtype= 阅读全文
posted @ 2024-03-07 16:58 绝不原创的飞龙 阅读(138) 评论(0) 推荐(0)
摘要: .\PokeLLMon\poke_env\teambuilder\teambuilder_pokemon.py """This module defines the TeambuilderPokemon class, which is used as an intermediate format t 阅读全文
posted @ 2024-03-07 15:02 绝不原创的飞龙 阅读(30) 评论(0) 推荐(0)
摘要: .\PokeLLMon\poke_env\player\player.py """This module defines a base class for players. """ import asyncio import random from abc import ABC, abstractm 阅读全文
posted @ 2024-03-07 15:01 绝不原创的飞龙 阅读(42) 评论(0) 推荐(0)
摘要: .\PokeLLMon\poke_env\exceptions.py """ This module contains exceptions. """ # 定义一个自定义异常类 ShowdownException,继承自内置异常类 Exception class ShowdownException( 阅读全文
posted @ 2024-03-07 15:00 绝不原创的飞龙 阅读(23) 评论(0) 推荐(0)
摘要: .\PokeLLMon\poke_env\environment\move_category.py # 导入需要的模块 from enum import Enum, auto, unique # 定义一个枚举类 MoveCategory,表示一个移动类别 @unique class MoveCate 阅读全文
posted @ 2024-03-07 14:58 绝不原创的飞龙 阅读(37) 评论(0) 推荐(0)
摘要: .\PokeLLMon\poke_env\environment\double_battle.py # 从 logging 模块中导入 Logger 类 from logging import Logger # 从 typing 模块中导入 Any, Dict, List, Optional, Un 阅读全文
posted @ 2024-03-07 14:57 绝不原创的飞龙 阅读(33) 评论(0) 推荐(0)
摘要: .\PokeLLMon\poke_env\concurrency.py # 导入必要的模块 import asyncio import atexit import sys from logging import CRITICAL, disable from threading import Thre 阅读全文
posted @ 2024-03-07 14:52 绝不原创的飞龙 阅读(42) 评论(0) 推荐(0)
摘要: 原文:stockcharts.com/school/doku.php?id=chart_school:technical_indicators 译者:飞龙 协议:CC BY-NC-SA 4.0 相对强度指数(RSI) 目录 相对强度指数(RSI) 介绍 计算 参数 超买-超卖 背离 失败摆动 趋势识 阅读全文
posted @ 2024-03-07 13:56 绝不原创的飞龙 阅读(206) 评论(0) 推荐(0)
摘要: 原文:stockcharts.com/school/doku.php?id=chart_school:technical_indicators 译者:飞龙 协议:CC BY-NC-SA 4.0 去趋势价格振荡器(DPO) 目录 去趋势价格振荡器(DPO) 介绍 计算 位移移动平均线 DPO 衡量什么 阅读全文
posted @ 2024-03-07 13:53 绝不原创的飞龙 阅读(102) 评论(0) 推荐(0)
摘要: 原文:stockcharts.com/school/doku.php?id=chart_school:technical_indicators 译者:飞龙 协议:CC BY-NC-SA 4.0 成交量加权平均价格(VWAP) 目录 成交量加权平均价格(VWAP) 介绍 Tick 与 Minute 计 阅读全文
posted @ 2024-03-07 13:51 绝不原创的飞龙 阅读(557) 评论(0) 推荐(0)
摘要: 原文:stockcharts.com/school/doku.php?id=chart_school:technical_indicators 译者:飞龙 协议:CC BY-NC-SA 4.0 技术指标和振荡器简介 目录 技术指标和振荡器简介 介绍 什么是技术指标? 技术指标提供了什么? 为什么使用 阅读全文
posted @ 2024-03-07 13:49 绝不原创的飞龙 阅读(249) 评论(0) 推荐(0)
摘要: SelfAttention class SelfAttention(torch.nn.Module): """ 自注意力的逻辑,包含四部分: + 从输入计算 QKV, + 对 QKV 分头, + 从 QKV 计算 O(在`CoreAttention`里面), + 从 O 计算输出 """ def _ 阅读全文
posted @ 2024-03-07 00:02 绝不原创的飞龙 阅读(109) 评论(0) 推荐(0)