pszemraj commited on
Commit
5fa56e3
1 Parent(s): 4fec3d7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +51 -0
README.md CHANGED
@@ -703,6 +703,57 @@ tags:
703
 
704
  multiclass multilabel is the most fun :)
705
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
706
 
707
  ### labels
708
 
 
703
 
704
  multiclass multilabel is the most fun :)
705
 
706
+ ## structure
707
+
708
+ ```
709
+ >>> dataset
710
+ DatasetDict({
711
+ train: Dataset({
712
+ features: ['Book', 'Description', 'Genres'],
713
+ num_rows: 7914
714
+ })
715
+ validation: Dataset({
716
+ features: ['Book', 'Description', 'Genres'],
717
+ num_rows: 989
718
+ })
719
+ test: Dataset({
720
+ features: ['Book', 'Description', 'Genres'],
721
+ num_rows: 990
722
+ })
723
+ })
724
+ ```
725
+
726
+ the `Genres` column is multilabel and represented in binary format:
727
+
728
+ ```python
729
+ >>> print(json.dumps(dataset['train'][0], indent=4))
730
+ {
731
+ "Book": "The Last of the Mohicans (The Leatherstocking Tales, #2)",
732
+ "Description": "The wild rush of action in this classic frontier adventure story has made The Last of the Mohicans the most popular of James Fenimore Cooper's Leatherstocking Tales. Deep in the forests of upper New York State, the brave woodsman Hawkeye (Natty Bumppo) and his loyal Mohican friends Chingachgook and Uncas become embroiled in the bloody battles of the French and Indian War. The abduction of the beautiful Munro sisters by hostile savages, the treachery of the renegade brave Magua, the ambush of innocent settlers, and the thrilling events that lead to the final tragic confrontation between rival war parties create an unforgettable, spine-tingling picture of life on the frontier. And as the idyllic wilderness gives way to the forces of civilization, the novel presents a moving portrayal of a vanishing race and the end of its way of life in the great American forests.",
733
+ "Genres": [
734
+ 1,
735
+ 0,
736
+ 0,
737
+ 0,
738
+ 0,
739
+ 0,
740
+ 1,
741
+ 1,
742
+ 0,
743
+ 0,
744
+ 0,
745
+ 0,
746
+ 0,
747
+ 0,
748
+ 1,
749
+ 0,
750
+ 0,
751
+ 0
752
+ ]
753
+ }
754
+ ```
755
+
756
+
757
 
758
  ### labels
759