Classification and Anomaly Detection for Astronomical Datasets