thethinkmachine commited on
Commit
f3f8abb
·
verified ·
1 Parent(s): 19522ce

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -2
README.md CHANGED
@@ -49,6 +49,9 @@ $$\text{S}_{predicted} \times (\text{max} - \text{min}) + \text{min}$$
49
  Use the code below to get started with the model.
50
 
51
  ```python
 
 
 
52
  model_name = "thethinkmachine/Maxwell-Task-Complexity-Scorer-v0.2"
53
  tokenizer = AutoTokenizer.from_pretrained(model_name)
54
  model = AutoModelForSequenceClassification.from_pretrained(model_name)
@@ -77,8 +80,8 @@ query = "Is learning equivalent to decreasing local entropy?"
77
  max_score = 100
78
  min_score = 0
79
 
80
- print("DEITA Evol-Complexity Score:", get_deita_complexity_score(query)) # 2
81
- print("Scaled Complexity Score:", get_scaled_complexity_score(query)) # 28.39...
82
  ```
83
 
84
  ## Training Details
 
49
  Use the code below to get started with the model.
50
 
51
  ```python
52
+ import torch
53
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
54
+
55
  model_name = "thethinkmachine/Maxwell-Task-Complexity-Scorer-v0.2"
56
  tokenizer = AutoTokenizer.from_pretrained(model_name)
57
  model = AutoModelForSequenceClassification.from_pretrained(model_name)
 
80
  max_score = 100
81
  min_score = 0
82
 
83
+ print("DEITA Evol-Complexity Score:", get_deita_complexity_score(query))
84
+ print("Scaled Complexity Score:", get_scaled_complexity_score(query))
85
  ```
86
 
87
  ## Training Details