声呐水雷识别包(Sonar)
真实开源数据集封装(SKU-65):UCI Sonar。60 维回波特征 + class(R/M);CC BY 4.0,免费开源。
提供商: 平台自营
交付形态:文件包
适用场景
1 / 5场景说明
本数据包「声呐水雷识别包(Sonar)」适用于以下场景:
1
信号/雷达/天文等观测数据的分类(目标列:class)
2
高维数值特征上的二分类或多分类基线
3
科研与公共监测场景的公开数据对照
4
特征缩放、降维与分类器组合的教学实验
不适用于:直接替代现场标定数据或电网生产调度指令。
使用指南
2 / 5通过统一 API 拉取数据(全站接口相同,仅替换 slug)。
-
1
获取凭证
登录 → 购买 → 在 申请 API Key 签发密钥(仅显示一次)
-
2
发起请求
GET /api/v1/data/energy-sonar/rows?page=1&size=10,Header:X-API-Key -
3
解析响应
从 JSON 的
rows取数据,用total翻页 -
4
处理错误
401密钥无效 ·403未购买/无权 ·400参数错误 ·429过频 ·502上游失败
数据集说明
3 / 5SKU-65 声呐水雷识别包(Sonar)
- 源:Connectionist Bench (Sonar) (UCI)
- 行业:能源
- 标签列:
class - 场景:signal_classification
- 许可:CC BY 4.0(可商用分发,须署名)
字段 Schema
4 / 5{
"fields": [
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a1",
"nullable": false,
"nunique": 177
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a2",
"nullable": false,
"nunique": 182
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a3",
"nullable": false,
"nunique": 190
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a4",
"nullable": false,
"nunique": 181
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a5",
"nullable": false,
"nunique": 193
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a6",
"nullable": false,
"nunique": 196
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a7",
"nullable": false,
"nunique": 195
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a8",
"nullable": false,
"nunique": 201
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a9",
"nullable": false,
"nunique": 205
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a10",
"nullable": false,
"nunique": 207
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a11",
"nullable": false,
"nunique": 203
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a12",
"nullable": false,
"nunique": 206
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a13",
"nullable": false,
"nunique": 198
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a14",
"nullable": false,
"nunique": 202
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a15",
"nullable": false,
"nunique": 203
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a16",
"nullable": false,
"nunique": 203
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a17",
"nullable": false,
"nunique": 202
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a18",
"nullable": false,
"nunique": 204
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a19",
"nullable": false,
"nunique": 206
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a20",
"nullable": false,
"nunique": 203
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a21",
"nullable": false,
"nunique": 200
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a22",
"nullable": false,
"nunique": 203
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a23",
"nullable": false,
"nunique": 199
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a24",
"nullable": false,
"nunique": 201
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a25",
"nullable": false,
"nunique": 198
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a26",
"nullable": false,
"nunique": 194
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a27",
"nullable": false,
"nunique": 190
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a28",
"nullable": false,
"nunique": 194
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a29",
"nullable": false,
"nunique": 197
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a30",
"nullable": false,
"nunique": 202
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a31",
"nullable": false,
"nunique": 207
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a32",
"nullable": false,
"nunique": 205
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a33",
"nullable": false,
"nunique": 205
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a34",
"nullable": false,
"nunique": 206
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a35",
"nullable": false,
"nunique": 205
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a36",
"nullable": false,
"nunique": 205
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a37",
"nullable": false,
"nunique": 206
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a38",
"nullable": false,
"nunique": 206
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a39",
"nullable": false,
"nunique": 204
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a40",
"nullable": false,
"nunique": 206
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a41",
"nullable": false,
"nunique": 204
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a42",
"nullable": false,
"nunique": 208
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a43",
"nullable": false,
"nunique": 205
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a44",
"nullable": false,
"nunique": 196
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a45",
"nullable": false,
"nunique": 205
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a46",
"nullable": false,
"nunique": 199
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a47",
"nullable": false,
"nunique": 202
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a48",
"nullable": false,
"nunique": 204
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a49",
"nullable": false,
"nunique": 193
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a50",
"nullable": false,
"nunique": 154
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a51",
"nullable": false,
"nunique": 160
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a52",
"nullable": false,
"nunique": 144
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a53",
"nullable": false,
"nunique": 134
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a54",
"nullable": false,
"nunique": 134
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a55",
"nullable": false,
"nunique": 129
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a56",
"nullable": false,
"nunique": 122
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a57",
"nullable": false,
"nunique": 121
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a58",
"nullable": false,
"nunique": 124
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a59",
"nullable": false,
"nunique": 119
},
{
"dtype": "float64",
"is_label": false,
"kind": "numeric",
"name": "a60",
"nullable": false,
"nunique": 109
},
{
"dtype": "str",
"is_label": true,
"kind": "numeric",
"name": "class",
"nullable": false,
"nunique": 2
}
],
"format": "csv",
"label_column": "class",
"license_hint": "CC BY 4.0",
"source_name": "Connectionist Bench (Sonar) (UCI)",
"source_url": "https://archive.ics.uci.edu/dataset/151/connectionist+bench+sonar+mines+vs+rocks"
}
调用示例
5 / 5路径中的 slug 换成已购商品标识即可。完整说明见 API 文档。
curl -H "X-API-Key: ds_你的密钥" \ "https://www.dataocean.zhixxing.cn/api/v1/data/energy-sonar/rows?page=1&size=10"
import requests
r = requests.get(
"https://www.dataocean.zhixxing.cn/api/v1/data/energy-sonar/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/energy-sonar/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/energy-sonar/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/energy-sonar/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/energy-sonar/rows?page=1&size=10");
Console.WriteLine(json);
1 / 5