% !TEX root =  main.tex

% ----------------------------------------------------------------
% % References
% ----------------------------------------------------------------
\newcommand{\algname}{\textsc{RAMBO}\xspace}

%% make lists small
\newcommand{\denselist}{\itemsep 0pt\topsep-10pt\partopsep-6pt}


\newcommand{\defref}[1]{Definition~\ref{#1}}
\newcommand{\tabref}[1]{Table~\ref{#1}}
\newcommand{\figref}[1]{Fig.~\ref{#1}}
\newcommand{\eqnref}[1]{\text{Eq.}~(\ref{#1})}
\newcommand{\secref}[1]{\S\ref{#1}}
\newcommand{\appref}[1]{Appendix \ref{#1}}
% \newcommand{\appref}[1]{the Appendix} % for short version of the paper
\newcommand{\thmref}[1]{Theorem~\ref{#1}}
\newcommand{\corref}[1]{Corollary~\ref{#1}}
\newcommand{\propref}[1]{Proposition~\ref{#1}}
\newcommand{\lemref}[1]{Lemma~\ref{#1}}
\newcommand{\conref}[1]{Condition~\ref{#1}}
\newcommand{\assref}[1]{Assumption~\ref{#1}}
\newcommand{\egref}[1]{Example~\ref{#1}}
\newcommand{\algoref}[1]{Algorithm~\ref{#1}}
%\newcommand{\lineref}[1]{Line~\ref{#1}}


% ----------------------------------------------------------------
% Text conveniences
% ----------------------------------------------------------------
\newcommand{\cf}{\emph{c.f.}}

% ----------------------------------------------------------------
% Wrappers: Parens, brackets, etc
% ----------------------------------------------------------------
\newcommand{\op}[1]{\operatorname{#1}}
\newcommand{\paren} [1] {\ensuremath{ \left( {#1} \right) }}
\newcommand{\parenb} [1] {\ensuremath{ \big( {#1} \big) }}
\newcommand{\bigparen} [1] {\ensuremath{ \Big( {#1} \Big) }}
\newcommand{\biggparen} [1] {\ensuremath{ \bigg( {#1} \bigg) }}
\newcommand{\Biggparen} [1] {\ensuremath{ \Bigg( {#1} \Bigg) }}
\newcommand{\bracket}[1]{\left[#1\right]}
\newcommand{\tuple}[1]{\ensuremath{\left\langle #1 \right\rangle}}
%\newcommand{\set}[1]{\ensuremath{\left\{#1\right\}}}
\newcommand{\curlybracket}[1]{\ensuremath{\left\{#1\right\}}}
\newcommand{\condcurlybracket}[2]{\ensuremath{\left\{#1\left\lvert\:#2\right.\right\}}}



% ----------------------------------------------------------------
% fundamental sets and objects
% ----------------------------------------------------------------
\newcommand{\NonNegativeReals}{\ensuremath{\mathbb{R}_{\ge 0}}}
\newcommand{\PositiveIntegers}{\ensuremath{\mathbb{Z^+}}}
\newcommand{\integers}{\ensuremath{\mathbb{Z}}}
\newcommand{\nats}{\ensuremath{\mathbb{N}}}
\newcommand{\reals}{\ensuremath{\mathbb{R}}}
\newcommand{\rationals}{\ensuremath{\mathbb{Q}}}
\newcommand{\distrib}[0]{\ensuremath{\mathcal{D}}}
\newcommand{\matroid}{\ensuremath{\mathcal{M}}}
\newcommand{\model}[0]{\ensuremath{\mathcal{M}}}
\newcommand{\hypotheses}[0]{\mathcal{H}}
\newcommand{\hvar}[0]{\ensuremath{H}}
\newcommand{\hypothesis}[0]{\ensuremath{h}}

% ----------------------------------------------------------------
% argmin and argmax
% ----------------------------------------------------------------
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator*{\argmax}{arg\,max}


% ----------------------------------------------------------------
% Functions and Functionals
% ----------------------------------------------------------------
\newcommand{\indic}[1]{\mathbbm{1}\left[#1\right]}
\renewcommand{\Pr}[1]{\ensuremath{\mathbb{P}\left[#1\right] }}
\newcommand{\expct}[1]{\mathbb{E}\left[#1\right]}
\newcommand{\expctover}[2]{\mathbb{E}_{#1}\!\left[#2\right]}
\newcommand{\PrOver}[2]{\ensuremath{\mathbb{P}_{#1}\!\left[#2\right]}}
\newcommand{\abs}[1]{\left\vert#1\right\vert}



\DeclareMathOperator{\mean}{mean}
% ----------------------------------------------------------------
% Caligraphic Vars
\newcommand{\cD}{{\mathcal{D}}}
\newcommand{\cS}{{\mathcal{S}}}
\newcommand{\cA}{{\mathcal{A}}}
\newcommand{\cG}{{\mathcal{G}}}
\newcommand{\cE}{{\mathcal{E}}}
\newcommand{\cV}{{\mathcal{V}}}
\newcommand{\cB}{{\mathcal{B}}}
\newcommand{\cX}{{\mathcal{X}}}
\newcommand{\cY}{{\mathcal{Y}}}
\newcommand{\cH}{{\mathcal{H}}}
\newcommand{\cU}{{\mathcal{U}}}
\newcommand{\cW}{{\mathcal{W}}}
\newcommand{\cC}{{\mathcal{C}}}
\newcommand{\cO}{{\mathcal{O}}}
\newcommand{\cI}{{\mathcal{I}}}
\newcommand{\cJ}{{\mathcal{J}}}
\newcommand{\cK}{{\mathcal{K}}}
\newcommand{\cR}{{\mathcal{R}}}
\newcommand{\cT}{{\mathcal{T}}}
\newcommand{\cM}{{\mathcal{M}}}

% ----------------------------------------------------------------
% Bold vars
\newcommand{\ba}{{\mathbf{a}}}
\newcommand{\bb}{{\mathbf{b}}}
\newcommand{\bc}{{\mathbf{c}}}
\newcommand{\bd}{{\mathbf{d}}}
\newcommand{\bh}{{\mathbf{h}}}
\newcommand{\bp}{{\mathbf{p}}}
\newcommand{\bq}{{\mathbf{q}}}
\newcommand{\bs}{{\mathbf{s}}}
\newcommand{\bt}{{\mathbf{t}}}
\newcommand{\bu}{{\mathbf{u}}}
\newcommand{\bv}{{\mathbf{v}}}
\newcommand{\bw}{{\mathbf{w}}}
\newcommand{\bx}{{\mathbf{x}}}
\newcommand{\bn}{{\mathbf{n}}}
\newcommand{\be}{{\mathbf{e}}}
\newcommand{\by}{{\mathbf{y}}}
\newcommand{\bz}{{\mathbf{z}}}
\newcommand{\bX}{{\mathbf{X}}}
\newcommand{\bZ}{{\mathbf{Z}}}


% ----------------------------------------------------------------
% Customized notations

% 
% classifier
% 
% 
% 
% 
% 
% 
% 

% Constants
\newcommand{\numRounds}{\ensuremath{T}}
\newcommand{\batchSize}{\ensuremath{M}}
\newcommand{\numRoundsPol}{\ensuremath{K}}
\newcommand{\compBudget}{\ensuremath{C}}

\newcommand{\ValSet}{\ensuremath{S_{\text{val}}}}


% Random Variables
\newcommand{\instance}{\ensuremath{{e}}}
\newcommand{\Instances}{\ensuremath{\mathcal{V}}}
\newcommand{\Labels}{\ensuremath{\mathcal{O}}}
\newcommand{\Unlabeled}{\ensuremath{\mathcal{U}}}
\newcommand{\UnlabeledSet}{\ensuremath{\mathcal{U}_x}}
\newcommand{\UnlabeledSetAt}[1]{\ensuremath{U}_x^{(#1)}}
\newcommand{\Labeled}[1]{\ensuremath{\mathcal{L}}\left(#1\right)}
\newcommand{\LabeledSet}{\ensuremath{\mathcal{S}}}
\newcommand{\LabeledSetAt}[1]{\ensuremath{\mathcal{S}}_y^{(#1)}}
\newcommand{\Utility}{\ensuremath{U}}
\newcommand{\Universe}{\ensuremath{\mathcal{V}}}

% Functions
% utility function, policy, 
\newcommand{\classifierFn}{\ensuremath{f}}
\newcommand{\clsFnStar}{\ensuremath{f^*}}
\newcommand{\utilityFn}{\ensuremath{u}} %% different notation?
\newcommand{\rep}{\ensuremath{\phi}}
\newcommand{\policy}{\ensuremath{\pi}}
\newcommand{\classAlgoFn}[1]{\ensuremath{\mathcal{A}\paren{#1}}}
\newcommand{\classAlgo}{\ensuremath{\mathcal{A}}}

\newcommand{\valueOf}{\ensuremath{{u}}}
\newcommand{\valueOfPred}{\ensuremath{\hat{u}}}
\newcommand{\utilitysample}{\ensuremath{\xi}}


%% Later added
\newtheorem{definition}{Definition}

\newcommand{\unit}{\ensuremath{\mathbbm{1}}}



% Operators
\newcommand{\given}{\ensuremath{\mid}}


%% Editorial Notes
\newif\iffinal
% Un-comment this line to see proposal without comments
%\finaltrue

% customized commands
\iffinal
    \newcommand{\yuxin}[1]{[\textcolor{blue}{\textbf{Yuxin:} #1}]}
    \newcommand{\zixin}[1]{}
    \newcommand{\ruoxi}[1]{}
    \newcommand{\si}[1]{}
    \newcommand{\siil}[1]{}
    \newcommand{\ruoxiil}[1]{}
    \newcommand{\addpagenumber}{}
\else
    % \setlength{\marginparsep}{0.2cm}
    % \setlength{\marginparwidth}{2cm}
    \newcommand{\yuxin}[1]  {\todo[fancyline,color=blue!40]{YC: #1}\xspace}
    \newcommand{\yuxinil}[1]{\todo[fancyline,inline,color=blue!40]{YC: #1}\xspace}%{\textcolor{NavyBlue}{[\textbf{YC: #1}]}}
    \newcommand{\zixin}[1]  {\todo[fancyline,color=orange]{Zixin: #1}\xspace}
    \newcommand{\zixinil}[1]{[\textcolor{orange}{\textbf{Zixin:} #1}]}
    \newcommand{\ruoxi}[1]{\todo[fancyline,color=yellow]{Ruoxi: #1}\xspace}
    \newcommand{\si}[1]{\todo[fancyline,color=cyan]{Si: #1}\xspace}
    \newcommand{\siil}[1]{\textbf{\textcolor{cyan}{[Si: #1]}}}
    \newcommand{\ruoxiil}[1]{\textbf{\textcolor{red}{[Ruoxi: #1]}}}
    \newcommand{\addpagenumber}{\pagenumbering{arabic}}
\fi
