5roop commited on
Commit
8e1fe7d
1 Parent(s): 89303c0
Files changed (1) hide show
  1. README.md +5 -6
README.md CHANGED
@@ -44,18 +44,17 @@ Comparison with `xlm-roberta-base`:
44
  ```python
45
  from simpletransformers.classification import ClassificationModel
46
  model_args = {
47
- "num_train_epochs": 14,
48
- "learning_rate": 1e-5,
49
- "train_batch_size": 21,
50
- }
51
 
52
  model = ClassificationModel(
53
- "bert", "5roop/bcms-bertic-frenk-hate", use_cuda=True,
54
  args=model_args
55
 
56
  )
57
 
58
- predictions, logit_output = model.predict(["Silva, ti si grda in neprijazna.", "Naša hiša ima dimnik."])
59
  predictions
60
  ### Output:
61
  ### array([1, 0])
 
44
  ```python
45
  from simpletransformers.classification import ClassificationModel
46
  model_args = {
47
+ "num_train_epochs": 6,
48
+ "learning_rate": 3e-6,
49
+ "train_batch_size": 69}
 
50
 
51
  model = ClassificationModel(
52
+ "camembert", "5roop/sloberta-frenk-hate", use_cuda=True,
53
  args=model_args
54
 
55
  )
56
 
57
+ predictions, logit_output = model.predict(["Silva, ti si grda in neprijazna", "Naša hiša ima dimnik"])
58
  predictions
59
  ### Output:
60
  ### array([1, 0])