createTicTacToe: Create Tic-Tac-Toe Endgame dataset

Description Usage Arguments Details Value See Also

Description

From UCI: "This database encodes the complete set of possible board configurations at the end of tic-tac-toe games, where "x" is assumed to have played first. The target concept is "win for x" (i.e., true when "x" has one of 8 possible ways to create a "three-in-a-row"). Interestingly, this raw database gives a stripped-down decision tree algorithm (e.g., ID3) fits. However, the rule-based CN2 algorithm, the simple IB1 instance-based learning algorithm, and the CITRE feature-constructing decision tree algorithm perform well on it."

Usage

1
2
createTicTacToe(file = getfilepath("tictactoe.rds"), write = TRUE,
  read = TRUE)

Arguments

file

character; path/filename to write data file to

write

logical; should the dataset be written to disk for later use? (default: TRUE)

read

logical; should we try to read the dataset from the specified location first? (default: TRUE)

Details

Task: formula(Class ~ .)

Value

The dataset as a data.table

1. top-left-square: x,o,b 2. top-middle-square: x,o,b 3. top-right-square: x,o,b 4. middle-left-square: x,o,b 5. middle-middle-square: x,o,b 6. middle-right-square: x,o,b 7. bottom-left-square: x,o,b 8. bottom-middle-square: x,o,b 9. bottom-right-square: x,o,b

See Also

https://archive.ics.uci.edu/ml/datasets/Tic-Tac-Toe+Endgame


jkrijthe/createdatasets documentation built on May 19, 2019, 12:44 p.m.