Data
sf-police-incidents

sf-police-incidents

active ARFF Public Domain (CC0) Visibility: public Uploaded 18-11-2020 by Pieter Gijsbers
1 likes downloaded by 0 people , 0 total downloads 0 issues 0 downvotes
  • Machine Learning Physical Sciences study_270 study_271
Issue #Downvotes for this reason By


Loading wiki
Help us complete this description Edit
Incident reports from the San Franciso Police Department between January 2003 and May 2018, provided by the City and County of San Francisco. The dataset was downloaded on 05.11.2018. from [https://data.sfgov.org/Public-Safety/Police-Department-Incident-Reports-Historical-2003/tmnf-yvry]. For a description of all variables, checkout the homepage of the data provider. The original data was published under ODC Public Domain Dedication and Licence (PDDL) [https://opendatacommons.org/licenses/pddl/1.0/]. As target, the binary variable 'ViolentCrime' was created. A 'ViolentCrime' was defined as 'Category' %in% c('ASSAULT', 'ROBBERY', 'SEX OFFENSES, FORCIBLE', 'KIDNAPPING') | 'Descript' %in% c('GRAND THEFT PURSESNATCH', 'ATTEMPTED GRAND THEFT PURSESNATCH'). Additional date and time features 'Hour', 'DayOfWeek', 'Month', and 'Year' were created. The original variables 'Category', 'Descript', 'Date', 'Time', 'Resolution', 'Location', and 'PdId' were removed from the dataset. One record which contained the only missing value in the variable 'PdDistrict' was removed from the dataset. Using this dataset for machine learning was inspired by Nina Zumel's blogpost [http://www.win-vector.com/blog/2012/07/modeling-trick-impact-coding-of-categorical-variables-with-many-levels/]. Note that incidents consist of multiple rows in the dataset when the crime belongs to more than one 'Category', which is indicated by the ID variable 'IncidntNum' (ignored by default).

9 features

ViolentCrime (target)nominal2 unique values
0 missing
IncidntNum (row identifier)numeric1746913 unique values
0 missing
Hournumeric24 unique values
0 missing
DayOfWeeknominal7 unique values
0 missing
Monthnominal12 unique values
0 missing
Yearnominal16 unique values
0 missing
PdDistrictnominal10 unique values
0 missing
Addressnominal25147 unique values
0 missing
Xnumeric37380 unique values
0 missing
Ynumeric37402 unique values
0 missing

19 properties

2215023
Number of instances (rows) of the dataset.
9
Number of attributes (columns) of the dataset.
2
Number of distinct values of the target attribute (if it is nominal).
0
Number of missing values in the dataset.
0
Number of instances with at least one value missing.
3
Number of numeric attributes.
6
Number of nominal attributes.
11.11
Percentage of binary attributes.
0
Percentage of instances having missing values.
0.79
Average class difference between consecutive instances.
0
Percentage of missing values.
33.33
Percentage of numeric attributes.
0
Number of attributes divided by the number of instances.
66.67
Percentage of nominal attributes.
87.84
Percentage of instances belonging to the most frequent class.
1945704
Number of instances belonging to the most frequent class.
12.16
Percentage of instances belonging to the least frequent class.
269319
Number of instances belonging to the least frequent class.
1
Number of binary attributes.

2 tasks

0 runs - estimation_procedure: 4-fold Crossvalidation - target_feature: ViolentCrime
0 runs - estimation_procedure: 10-fold Crossvalidation - evaluation_measure: predictive_accuracy - target_feature: ViolentCrime
Define a new task