国际象棋残局胜负包(KRKPA7)
真实开源数据集封装(SKU-73):UCI Chess KRKPA7。棋盘特征 + result;CC BY 4.0,免费开源。
提供商: 平台自营
交付形态:文件包
适用场景
1 / 5场景说明
本数据包「国际象棋残局胜负包(KRKPA7)」适用于以下场景:
1
棋类/博弈终局胜负分类(目标列:result)
2
高维类别特征编码与二分类基线
3
政务/科研公开博弈数据的算法对照
4
大规模类别特征稀疏建模入门
不适用于:替代正式政务统计报送,或未脱敏的敏感公共数据场景。
使用指南
2 / 5通过统一 API 拉取数据(全站接口相同,仅替换 slug)。
-
1
获取凭证
登录 → 购买 → 在 申请 API Key 签发密钥(仅显示一次)
-
2
发起请求
GET /api/v1/data/government-chess-krkp/rows?page=1&size=10,Header:X-API-Key -
3
解析响应
从 JSON 的
rows取数据,用total翻页 -
4
处理错误
401密钥无效 ·403未购买/无权 ·400参数错误 ·429过频 ·502上游失败
数据集说明
3 / 5SKU-73 国际象棋残局胜负包(KRKPA7)
- 源:Chess (King-Rook vs King-Pawn) (UCI)
- 行业:政务/公共数据
- 标签列:
result - 场景:game_outcome
- 许可:CC BY 4.0(可商用分发,须署名)
字段 Schema
4 / 5{
"fields": [
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_1",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_2",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_3",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_4",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_5",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_6",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_7",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_8",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_9",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_10",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_11",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_12",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_13",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_14",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_15",
"nullable": false,
"nunique": 3
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_16",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_17",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_18",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_19",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_20",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_21",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_22",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_23",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_24",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_25",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_26",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_27",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_28",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_29",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_30",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_31",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_32",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_33",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_34",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_35",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": false,
"kind": "numeric",
"name": "attr_36",
"nullable": false,
"nunique": 2
},
{
"dtype": "str",
"is_label": true,
"kind": "numeric",
"name": "result",
"nullable": false,
"nunique": 2
}
],
"format": "csv",
"label_column": "result",
"license_hint": "CC BY 4.0",
"source_name": "Chess (King-Rook vs King-Pawn) (UCI)",
"source_url": "https://archive.ics.uci.edu/dataset/22/chess+king+rook+vs+king+pawn"
}
调用示例
5 / 5路径中的 slug 换成已购商品标识即可。完整说明见 API 文档。
curl -H "X-API-Key: ds_你的密钥" \ "https://www.dataocean.zhixxing.cn/api/v1/data/government-chess-krkp/rows?page=1&size=10"
import requests
r = requests.get(
"https://www.dataocean.zhixxing.cn/api/v1/data/government-chess-krkp/rows",
headers={"X-API-Key": "ds_你的密钥"},
params={"page": 1, "size": 10},
timeout=30,
)
r.raise_for_status()
print(r.json())
const apiKey = "ds_你的密钥";
const url = new URL("https://www.dataocean.zhixxing.cn/api/v1/data/government-chess-krkp/rows");
url.searchParams.set("page", "1");
url.searchParams.set("size", "10");
const resp = await fetch(url, {
headers: { "X-API-Key": apiKey },
});
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const payload = await resp.json();
console.log(payload);
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
var client = HttpClient.newHttpClient();
var request = HttpRequest.newBuilder()
.uri(URI.create("https://www.dataocean.zhixxing.cn/api/v1/data/government-chess-krkp/rows?page=1&size=10"))
.header("X-API-Key", "ds_你的密钥")
.GET()
.build();
var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET",
"https://www.dataocean.zhixxing.cn/api/v1/data/government-chess-krkp/rows?page=1&size=10", nil)
req.Header.Set("X-API-Key", "ds_你的密钥")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(resp.StatusCode, string(body))
}
using System.Net.Http;
var client = new HttpClient();
client.DefaultRequestHeaders.Add("X-API-Key", "ds_你的密钥");
var json = await client.GetStringAsync("https://www.dataocean.zhixxing.cn/api/v1/data/government-chess-krkp/rows?page=1&size=10");
Console.WriteLine(json);
1 / 5