automl / TabPFN

Official implementation of the TabPFN paper (https://arxiv.org/abs/2207.01848) and the tabpfn package.
http://priorlabs.ai
Apache License 2.0
1.22k stars 109 forks source link

Why src_mask = single_eval_pos + len(style_src)? #67

Closed hedongyan closed 11 months ago

hedongyan commented 11 months ago

Hello, I want to known why you add a int and a function? There is a TypeError: unsupported operand type(s) for +: 'function' and 'int'.

The position is line 120 in tabpfn/transformer.py

noahho commented 11 months ago

The code concerning the style_src should not be needed, I am not sure in which context you encounter the error, but you could likely remove code connected to the style_src