We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d12dcf5 commit 66c5adbCopy full SHA for 66c5adb
simpletransformers.clj
@@ -21,18 +21,18 @@
21
22
23
(println "train...")
24
-(py/with-gil
25
- (let [
26
- train-df (pd/DataFrame train-data)
27
- eval-df (pd/DataFrame eval-data)
+
+(let [
+ train-df (pd/DataFrame train-data)
+ eval-df (pd/DataFrame eval-data)
28
29
- model (ClassificationModel "roberta" "roberta-base" :use_cuda false :args
30
- {:num_train_epochs 1
31
- :use_multiprocessing false
32
- :overwrite_output_dir true})
33
-
34
35
- x (py. model train_model train-df)]
36
- (println x)))
+ model (ClassificationModel "bert" "prajjwal1/bert-tiny" :use_cuda false :args
+ {:num_train_epochs 1
+ :use_multiprocessing false
+ :overwrite_output_dir true})
+ x (py. model train_model train-df)]
+ (println x))
37
38
(println "finished train")
0 commit comments