<p>That I know there is the XHIP catalog via <a href="https://vizier.u-strasbg.fr/viz-bin/VizieR-3?-source=V/137D/XHIP&amp;-out.max=50&amp;-out.form=HTML%20Table&amp;-out.add=_r&amp;-out.add=_RAJ,_DEJ&amp;-sort=_r&amp;-oc.form=sexa" rel="nofollow noreferrer">VizieR</a> and you can enter a range in <strong>UMag</strong> (or B- and V-band) for example of <code>-20 .. 20</code>. Check the box SpType and Tc to get also the spectral type and temperature (double check the literature for the quantities you need)</p>
<p>On the column on the left titled <strong>Preferences</strong>, set the quantity <strong>max</strong> to <em>unlimited</em> (it's the number of data) and the box just below indicates the format to download the data, if you want *.csv select <strong>CDS Portal</strong> and click on <strong>Submit</strong>.</p>
<p>You will be redirected on the CDS portal and simply click on <strong>Save</strong> and then on <strong>MyData</strong>, it will show you a list of the dataset you saved and you can select the format of your file (csv, fits, etc.) and then download.</p>
<p>With the simple range of the V absolute magnitude between -20 and 20 you get more then 100k stars</p>
<p><strong>Edited:</strong> I noticed that downloading the data through the CDS portal does not give you the quantities that you check, but some fixed one. Maybe I can suggest to select <strong>ascii text/plain</strong> and then download the page.</p>

CC BY-SA 4.0
2020-12-31T15:06:37.007Z
Thank you, that's exactly what I was looking for.
Michal
CC BY-SA 4.0
2020-12-31T10:55:40.190Z
2020-12-31T11:09:50.180Z
2020-12-31T11:09:50.180Z
Michele Bianco
<p>I would like to create program for automatic <a href="https://en.wikipedia.org/wiki/Stellar_classification" rel="nofollow noreferrer">Morgan-Keenan stellar classification</a> using machine learning. For that, I need dataset of stars with known absolute magnitude, temperature and luminosity type (0, Ia, Ib, ..., VII). I found some datasets, (e. g. <a href="https://www.kaggle.com/deepu1109/star-dataset" rel="nofollow noreferrer">kaggle.com</a>), however they contain only few hundreds stars and not all star types are represented.</p>
<p>Is there any large enough dataset (at least 1000 stars) in which all types of stars are represented, from hypergiants to dwarfs, and with all the information mentioned?</p>

<star><classification><stellar-classification>
Dataset for machine learning MK stellar classification
Michal
# Dataset for machine learning MK stellar classification

(Asked by: username_0 on 2020-12-31)

I would like to create program for automatic [Morgan-Keenan stellar classification](https://en.wikipedia.org/wiki/Stellar_classification) using machine learning. For that, I need dataset of stars with known absolute magnitude, temperature and luminosity type (0, Ia, Ib, ..., VII). I found some datasets, (e. g. [kaggle.com](https://www.kaggle.com/deepu1109/star-dataset)), however they contain only few hundreds stars and not all star types are represented.

Is there any large enough dataset (at least 1000 stars) in which all types of stars are represented, from hypergiants to dwarfs, and with all the information mentioned?

**Tags:** star, classification, stellar-classification


---

## 1 answers

### Answer by username_1 on 2020-12-31. Score: 2 | Accepted answer

That I know there is the XHIP catalog via [VizieR](https://vizier.u-strasbg.fr/viz-bin/VizieR-3?-source=V/137D/XHIP&-out.max=50&-out.form=HTML%20Table&-out.add=_r&-out.add=_RAJ,_DEJ&-sort=_r&-oc.form=sexa) and you can enter a range in **UMag** (or B- and V-band) for example of `-20 .. 20`. Check the box SpType and Tc to get also the spectral type and temperature (double check the literature for the quantities you need)

On the column on the left titled **Preferences**, set the quantity **max** to *unlimited* (it's the number of data) and the box just below indicates the format to download the data, if you want \*.csv select **CDS Portal** and click on **Submit**.

You will be redirected on the CDS portal and simply click on **Save** and then on **MyData**, it will show you a list of the dataset you saved and you can select the format of your file (csv, fits, etc.) and then download.

With the simple range of the V absolute magnitude between -20 and 20 you get more then 100k stars

**Edited:** I noticed that downloading the data through the CDS portal does not give you the quantities that you check, but some fixed one. Maybe I can suggest to select **ascii text/plain** and then download the page.

> **Comments:**
> **username_0**: Thank you, that's exactly what I was looking for.  

---

