x-algorithm
34,176
Stars
0
Forks
0
Watchers
0
Open Issues
未知
许可证
Rust
语言
创建时间
最近更新
项目能做什么
驱动 X 平台“为您推荐(For You)”信息流的推荐算法核心代码。
来源:基于仓库元数据
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# X For You Feed Algorithm This repository contains the core code that determines which posts a viewer sees in the **For You** feed on X. It combines in-network content (from accounts the viewer follows) with out-of-network content (discovered through ML-based retrieval and other mechanisms), filters content based on a variety of inputs, and ranks posts using a transformer model. ## Table of Contents - [Notable Updates](#notable-updates) - [October 26th, 2026](#october-26th-2026) - [October 13th, 2026](#october-13th-2026) - [October 8th, 2026](#october-8th-2026) - [September 18th, 2026](#september-18th-2026) - [August 14th, 2026](#august-14th-2026) - [August 13th, 2026](#august-13th-2026) - [Overview](#overview) - [System Architecture](#system-architecture) - [Request Path](#request-path) - [Labeling Path](#labeling-path) - [Components](#components) - [How It Works](#how-it-works) - [Scoring and Ranking](#scoring-and-ranking) - [Filtering](#filtering) - [Experiments and Configuration](#experiments-and-configuration) - [What's not in this repo?](#whats-not-in-this-repo) - [Under the Hood Label Transparency Tool](#under-the-hood-label-transparency-tool) - [Key Design Decisions](#key-design-decisions) - [License](#license) --- ## Notable Updates ### October 26th, 2026 - **Brazil 2026 Elections filter removed.** With the 2026 Brazilian elections over, we have removed `Brazil2026ElectionFilter` from For You. Posts from the accounts it covered are no longer filtered out because of it. See the [August 14th, 2026](#august-14th-2026) update for what the filter did. ### October 13th, 2026 - ***Retrieval trained to surface posts people read all the way through.*** [Phoenix retrieval](phoenix/xrex/models/recsys_two_tower_model.py) is now also trained to surface posts that people read all the way through. ### October 8th, 2026 - ***Ranking predicts time spent much better.*** The [Phoenix ranking model](phoenix/xrex/models/recsys_model.py) now does a better job of estimating how long you'll spend on each post: see the [code](phoenix/xrex/models/loss_recsys.py). ### September 18th, 2026 - **[Under the Hood](#under-the-hood-label-transparency-tool).** Reports now include information about whether one's account or posts have had their visibility limited because of required compliance with law(s). For example, you'll be able to see if any of your posts were withheld from showing in a country following a legal demand — and which country. ### August 14th, 2026 Notable updates: - **How weights work.** There's a common misconception about how weights related to actions (e.g. Like, Share, Block, Report, etc) work in ranking. The weights scale the predicted probabilities of such actions (or predicted continuous values, e.g. dwell time) — they do *not* scale the raw engagement counts, so e.g. it'd be incorrect to see that a report has 468 times higher weight than a like and conclude that e.g. "1 report cancels out 468 likes". The wei阅读完整原文
商业机会分析 规则生成(AI 未配置)
综合评分 42.0 分。该项目在“个人可实施性”维度得 35 分,“付费可能性”维度得 20.0 分,差异化空间 70.0 分(评分依据见评分卡)。
面向细分需求的二次开发产品
| 产品构想 | 基于 x-algorithm 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。 |
| 目标用户 | 该细分场景用户 |
| 难度/周期 | 中 · 2~6 周 |
| 收费模式 | 买断制 / 订阅制 / 广告 |
| 竞争风险 | 细分需求规模需验证 |
| 依据 | AI 推测:基于项目主题标签的判断 |
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| twitter/the-algorithm | 中文介绍暂未生成 Source code for the X Recommendation Algorithm |
74,062 | Scala |
| py-why/EconML | 中文介绍暂未生成 ALICE (Automated Learning and Intelligence for Causation and |
4,850 | Jupyter Notebook |
| sunkafei/xcpc-algorithm-templates | 中文介绍暂未生成 XCPC/ICPC/CCPC 算法模板 |
885 | C++ |
| msambol/dsa | 中文介绍暂未生成 Data structures and algorithms in X minutes. Code examples f |
821 | Python |
| Gautam-J/Machine-Learning | 中文介绍暂未生成 Implementation of different ML Algorithms from scratch, writ |
412 | Python |
| markusn/color-diff | 中文介绍暂未生成 Implemets the CIEDE2000 color difference algorithm, conversi |
372 | JavaScript |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 ,最近推送 |
| 社区活跃 | Star 34,176 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/xai-org/x-algorithm.git cd x-algorithm # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。