PHME-Datachallenge / Data-Challenge-2022

7 stars 7 forks source link

Name not on the leader board #26

Closed kckenni closed 2 years ago

kckenni commented 2 years ago

Hi,

Our Participant name was jlee on the leader board two days ago. But we do not see our name now. Is it because our code can not be executed properly using the Testing set or the test code has changed??

Best regards, gunwoo

marty90 commented 2 years ago

Here the problem:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-5-eb1b02d9a27b> in <module>
      5 results_1 = set(classification_1(SPI))
      6 results_2 = classification_2(SPI, AOI[["PanelID","FigureID","MachineID","ComponentID","PinNumber","AOILabel"]])
----> 7 results_3 = classification_3(SPI, AOI[["PanelID","FigureID","MachineID","ComponentID","PinNumber","AOILabel","RepairLabel"]])
      8 
      9 # Performance Task 1

<ipython-input-3-87c30e846c11> in classification_3(spi, aoi)
      6     print("========== CLASSIFICATION 3 STARTED ==========")
      7 
----> 8     merged_data = merger_predict(aoi,SPI_preprocessor(spi,verbose = False))
      9 
     10     FE = FeatureEngineer(mode = 'predict', name = 'prediction_3')

~/data-challenge-phme/utils.py in merger_predict(aoi, spi)
    179 
    180     merged_data = pd.concat([tmp,tmp_nan],axis=0)
--> 181     merged_data.OperatorLabel = merged_data.OperatorLabel.map({'Bad':int(1) , 'Good':int(0)},)
    182 
    183     merged_data["PosX(mm)"] = merged_data["PosX(mm)"]%58.2

~/.local/lib/python3.7/site-packages/pandas/core/generic.py in __getattr__(self, name)
   5485         ):
   5486             return self[name]
-> 5487         return object.__getattribute__(self, name)
   5488 
   5489     def __setattr__(self, name: str, value) -> None:

AttributeError: 'DataFrame' object has no attribute 'OperatorLabel'---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-5-eb1b02d9a27b> in <module>
      5 results_1 = set(classification_1(SPI))
      6 results_2 = classification_2(SPI, AOI[["PanelID","FigureID","MachineID","ComponentID","PinNumber","AOILabel"]])
----> 7 results_3 = classification_3(SPI, AOI[["PanelID","FigureID","MachineID","ComponentID","PinNumber","AOILabel","RepairLabel"]])
      8 
      9 # Performance Task 1

<ipython-input-3-87c30e846c11> in classification_3(spi, aoi)
      6     print("========== CLASSIFICATION 3 STARTED ==========")
      7 
----> 8     merged_data = merger_predict(aoi,SPI_preprocessor(spi,verbose = False))
      9 
     10     FE = FeatureEngineer(mode = 'predict', name = 'prediction_3')

~/data-challenge-phme/utils.py in merger_predict(aoi, spi)
    179 
    180     merged_data = pd.concat([tmp,tmp_nan],axis=0)
--> 181     merged_data.OperatorLabel = merged_data.OperatorLabel.map({'Bad':int(1) , 'Good':int(0)},)
    182 
    183     merged_data["PosX(mm)"] = merged_data["PosX(mm)"]%58.2

~/.local/lib/python3.7/site-packages/pandas/core/generic.py in __getattr__(self, name)
   5485         ):
   5486             return self[name]
-> 5487         return object.__getattribute__(self, name)
   5488 
   5489     def __setattr__(self, name: str, value) -> None:

AttributeError: 'DataFrame' object has no attribute 'OperatorLabel'
kckenni commented 2 years ago

Thank you for the reply