Skip to content

Methods · Machine learning · Rule learning

OneR Rule Classifier (Single-Attribute Rule)

OneR builds the best possible rule from a single attribute and keeps the attribute that classifies the data best. A categorical attribute gives one branch per level; a numeric attribute is cut into intervals so that every interval's majority class holds at least a set number of cases. It is the honest baseline a complicated model has to beat.

OneR은 속성 하나로 만들 수 있는 가장 좋은 규칙을 각 속성마다 만들고, 자료를 가장 잘 분류하는 속성 하나를 택합니다. 범주형 속성은 수준마다 한 가지, 수치형 속성은 각 구간의 다수 범주가 정해진 개수 이상이 되도록 구간을 나눕니다. 복잡한 모형이 넘어서야 할 정직한 기준선입니다.

Before fitting anything complicated: how far does the single best variable get me, and which variable is it?

복잡한 모형을 적합하기 전에, 가장 좋은 변수 하나만으로 어디까지 설명되며 그 변수는 무엇입니까?

The method returns the chosen attribute with its rules and their coverage, the accuracy of the best rule for every attribute, the accuracy of always predicting the majority class, a cross-validated accuracy and the confusion matrix.

When to use OneR Rule Classifier (Single-Attribute Rule)

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

A OneR classifier selected [value] with [value] rules and a training accuracy of [value]% against [value]% for the majority class (N = [value]).

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation).

    독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.

Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.

허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.

Run OneR Rule Classifier (Single-Attribute Rule) on Quorant

Data you need
a table (CSV or Excel) with an outcome variable and predictor (feature) columns
Price
250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
Checking
Compared with independent computations
Before you pay
A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.

Method ID Q71181 · Reviewed 2026-10-25