Hi @ptrblck
So my dataset contains 100 records and I need to run for 5 epoch and my batch size are 20.So if I use Macro F1 score using sklearn it give me f1 score after every batch (batch_1 = a(F1 Macro score),batch_2=b,… and batch_5=e) and my macro f1 score for epoch 1 is calculated by averages of  5 batches (a+b+…+e/5).
I read through some discussion pages related to keras which tells me above is not the best approach so keras remove macro f1 metrics now,
I am new to data science and pytorch just need to know is this the same problem for pytorch.
Hope and make you understand.Also I am attaching a link of stackoverflow/github discussion.

  
      stackoverflow.com
  
  
      
    
  

  How to calculate F1 Macro in Keras? 16



  keras



  asked by
  
  
    Aryo Pradipta Gema
  
  on 04:11PM - 21 Apr 17 UTC


  
  
    
    
  
  



  
      github.com/keras-team/keras
  
  
    
  
	  
  

  
    
      How do keras calulate the metric? 1
    

    
      
        opened 
        
          
        
        Nov 22, 2018
      
      

        
          closed 
        
          
        
        Apr 24, 2019
      
        

      
        
          
          Suncicie
        
      
    
  



  I'm trying to write a new metric of f1-macro for the softmax, I have tried two methods, I can't understand why...



    backend:tensorflow
    stat:awaiting response
    type:support