EmeraldMP commited on
Commit
1d0fef3
1 Parent(s): 8d59486

Add SetFit model

Browse files
Files changed (3) hide show
  1. README.md +28 -28
  2. config_setfit.json +14 -1
  3. model_head.pkl +2 -2
README.md CHANGED
@@ -46,20 +46,20 @@ The model has been trained using an efficient few-shot learning technique that i
46
  - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
47
 
48
  ### Model Labels
49
- | Label | Examples |
50
- |:------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
51
- | 0 | <ul><li>'The mayor announced a new initiative to improve public transportation.'</li><li>'The senator is facing criticism for her stance on the recent bill.'</li><li>'The upcoming election has sparked intense debates among the candidates.'</li></ul> |
52
- | 3 | <ul><li>'Regular exercise and a balanced diet are key to maintaining good health.'</li><li>'The World Health Organization has issued new guidelines on COVID-19.'</li><li>'A new study reveals the benefits of meditation for mental health.'</li></ul> |
53
- | 6 | <ul><li>'The stock market saw a significant drop following the announcement.'</li><li>'Investing in real estate can be a profitable venture if done correctly.'</li><li>"The company's profits have doubled since the launch of their new product."</li></ul> |
54
- | 9 | <ul><li>'Visiting the Grand Canyon is a breathtaking experience.'</li><li>'The tourism industry has been severely impacted by the pandemic.'</li><li>'Backpacking through Europe is a popular choice for young travelers.'</li></ul> |
55
- | 12 | <ul><li>'The new restaurant in town offers a fusion of Italian and Japanese cuisine.'</li><li>'Drinking eight glasses of water a day is essential for staying hydrated.'</li><li>'Cooking classes are a fun way to learn new recipes and techniques.'</li></ul> |
56
- | 15 | <ul><li>'The school district is implementing a new curriculum for the upcoming year.'</li><li>'Online learning has become increasingly popular during the pandemic.'</li><li>'The university is offering scholarships for students in financial need.'</li></ul> |
57
- | 18 | <ul><li>'Climate change is causing a significant rise in sea levels.'</li><li>'Recycling and composting are effective ways to reduce waste.'</li><li>'The Amazon rainforest is home to millions of unique species.'</li></ul> |
58
- | 21 | <ul><li>'The new fashion trend is all about sustainability and eco-friendly materials.'</li><li>'The annual Met Gala is a major event in the fashion world.'</li><li>'Vintage clothing has made a comeback in recent years.'</li></ul> |
59
- | 24 | <ul><li>"NASA's Mars Rover has made significant discoveries about the red planet."</li><li>'The Nobel Prize in Physics was awarded for breakthroughs in black hole research.'</li><li>'Genetic engineering is opening up new possibilities in medical treatment.'</li></ul> |
60
- | 27 | <ul><li>'The NBA Finals are set to begin next week with the top two teams in the league.'</li><li>'Serena Williams continues to dominate the tennis world with her powerful serve.'</li><li>'The World Cup is the most prestigious tournament in international soccer.'</li></ul> |
61
- | 30 | <ul><li>'Artificial intelligence is changing the way we live and work.'</li><li>'The latest iPhone has a number of exciting new features.'</li><li>'Cybersecurity is becoming increasingly important as more and more data moves online.'</li></ul> |
62
- | 33 | <ul><li>'The new Marvel movie is breaking box office records.'</li><li>'The Grammy Awards are a celebration of the best music of the year.'</li><li>'The latest season of Game of Thrones had fans on the edge of their seats.'</li></ul> |
63
 
64
  ## Uses
65
 
@@ -113,20 +113,20 @@ preds = model("The new Marvel movie is breaking box office records.")
113
  |:-------------|:----|:--------|:----|
114
  | Word count | 8 | 11.0833 | 17 |
115
 
116
- | Label | Training Sample Count |
117
- |:------|:----------------------|
118
- | 0 | 3 |
119
- | 3 | 3 |
120
- | 6 | 3 |
121
- | 9 | 3 |
122
- | 12 | 3 |
123
- | 15 | 3 |
124
- | 18 | 3 |
125
- | 21 | 3 |
126
- | 24 | 3 |
127
- | 27 | 3 |
128
- | 30 | 3 |
129
- | 33 | 3 |
130
 
131
  ### Training Hyperparameters
132
  - batch_size: (16, 16)
 
46
  - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
47
 
48
  ### Model Labels
49
+ | Label | Examples |
50
+ |:--------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
51
+ | Politics | <ul><li>'The mayor announced a new initiative to improve public transportation.'</li><li>'The senator is facing criticism for her stance on the recent bill.'</li><li>'The upcoming election has sparked intense debates among the candidates.'</li></ul> |
52
+ | Health | <ul><li>'Regular exercise and a balanced diet are key to maintaining good health.'</li><li>'The World Health Organization has issued new guidelines on COVID-19.'</li><li>'A new study reveals the benefits of meditation for mental health.'</li></ul> |
53
+ | Finance | <ul><li>'The stock market saw a significant drop following the announcement.'</li><li>'Investing in real estate can be a profitable venture if done correctly.'</li><li>"The company's profits have doubled since the launch of their new product."</li></ul> |
54
+ | Travel | <ul><li>'Visiting the Grand Canyon is a breathtaking experience.'</li><li>'The tourism industry has been severely impacted by the pandemic.'</li><li>'Backpacking through Europe is a popular choice for young travelers.'</li></ul> |
55
+ | Food | <ul><li>'The new restaurant in town offers a fusion of Italian and Japanese cuisine.'</li><li>'Drinking eight glasses of water a day is essential for staying hydrated.'</li><li>'Cooking classes are a fun way to learn new recipes and techniques.'</li></ul> |
56
+ | Education | <ul><li>'The school district is implementing a new curriculum for the upcoming year.'</li><li>'Online learning has become increasingly popular during the pandemic.'</li><li>'The university is offering scholarships for students in financial need.'</li></ul> |
57
+ | Environment | <ul><li>'Climate change is causing a significant rise in sea levels.'</li><li>'Recycling and composting are effective ways to reduce waste.'</li><li>'The Amazon rainforest is home to millions of unique species.'</li></ul> |
58
+ | Fashion | <ul><li>'The new fashion trend is all about sustainability and eco-friendly materials.'</li><li>'The annual Met Gala is a major event in the fashion world.'</li><li>'Vintage clothing has made a comeback in recent years.'</li></ul> |
59
+ | Science | <ul><li>"NASA's Mars Rover has made significant discoveries about the red planet."</li><li>'The Nobel Prize in Physics was awarded for breakthroughs in black hole research.'</li><li>'Genetic engineering is opening up new possibilities in medical treatment.'</li></ul> |
60
+ | Sports | <ul><li>'The NBA Finals are set to begin next week with the top two teams in the league.'</li><li>'Serena Williams continues to dominate the tennis world with her powerful serve.'</li><li>'The World Cup is the most prestigious tournament in international soccer.'</li></ul> |
61
+ | Technology | <ul><li>'Artificial intelligence is changing the way we live and work.'</li><li>'The latest iPhone has a number of exciting new features.'</li><li>'Cybersecurity is becoming increasingly important as more and more data moves online.'</li></ul> |
62
+ | Entertainment | <ul><li>'The new Marvel movie is breaking box office records.'</li><li>'The Grammy Awards are a celebration of the best music of the year.'</li><li>'The latest season of Game of Thrones had fans on the edge of their seats.'</li></ul> |
63
 
64
  ## Uses
65
 
 
113
  |:-------------|:----|:--------|:----|
114
  | Word count | 8 | 11.0833 | 17 |
115
 
116
+ | Label | Training Sample Count |
117
+ |:--------------|:----------------------|
118
+ | Education | 3 |
119
+ | Entertainment | 3 |
120
+ | Environment | 3 |
121
+ | Fashion | 3 |
122
+ | Finance | 3 |
123
+ | Food | 3 |
124
+ | Health | 3 |
125
+ | Politics | 3 |
126
+ | Science | 3 |
127
+ | Sports | 3 |
128
+ | Technology | 3 |
129
+ | Travel | 3 |
130
 
131
  ### Training Hyperparameters
132
  - batch_size: (16, 16)
config_setfit.json CHANGED
@@ -1,4 +1,17 @@
1
  {
2
- "labels": null,
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  "normalize_embeddings": false
4
  }
 
1
  {
2
+ "labels": [
3
+ "Education",
4
+ "Entertainment",
5
+ "Environment",
6
+ "Fashion",
7
+ "Finance",
8
+ "Food",
9
+ "Health",
10
+ "Politics",
11
+ "Science",
12
+ "Sports",
13
+ "Technology",
14
+ "Travel"
15
+ ],
16
  "normalize_embeddings": false
17
  }
model_head.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c65d1adcc78e31307abd94037aff6120b3ff37a01986a225c05cee127e7b980b
3
- size 74759
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ae16cf8f25bb088110133fcf0b0b18b7c0e42a670b9046ba90cc5d642b4bba5
3
+ size 75287