% ----------------------------------------------------------------
% % References
% ----------------------------------------------------------------
\newcommand{\defref}[1]{Definition~\ref{#1}}
\newcommand{\Tabref}[1]{Table~\ref{#1}}
\newcommand{\tabref}[1]{table~\ref{#1}}
%\newcommand{\figref}[1]{Fig.~\ref{#1}}
\newcommand{\selffigref}[1]{(\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{\remref}[1]{Remark~\ref{#1}}
\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}}
\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}}
\newcommand{\normal}[0]{\mathcal{N}}

% ----------------------------------------------------------------
% 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}

\newcommand{\mutualinfo}[1]{\mathbb{I}\paren{#1}}
\newcommand{\infogain}[1]{\operatorname{IG}\paren{#1}}

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


\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}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% toggle command
%\usepackage{etoolbox}
\usepackage{ifthen}

\newboolean{showcomments}
\setboolean{showcomments}{true}

% customized notations
\newcommand{\acqname}{\textsf{Acqname}\xspace}
\newcommand{\algname}{\textsf{Algname}\xspace}
\newcommand{\tempParam}{\zeta}
\newcommand{\regWeight}{\rho}
\newcommand{\regParam}{\lambda}
\newcommand{\indexRVar}{\phi}
\newcommand{\maxInfo}{\gamma}
\newcommand{\algParam}{\theta}



%%%% color text for note %%%%%%

\definecolor{ultramarine}{RGB}{24,13,191}

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

% customized commands
% \newif\iffinal

\iffinal
    \newcommand{\yuxin}[1]{}
    \newcommand{\yuxinil}[1]{}
    \newcommand{\fengxue}[1]{}
    \newcommand{\tony}[1]{}
    \newcommand{\TBD}[1]{}
    \newcommand{\rebuttal}[1]{#1}
    \newcommand{\revise}[1]{#1}
\else
    % \setlength{\marginparsep}{0.2cm}
    % \setlength{\marginparwidth}{3.5cm}
    % \newcommand{\yuxin}[1]{\todo[fancyline,color=purple!40]{YC: #1}\xspace}
    \newcommand{\yuxin}[1]{\todo[inline,color=purple!40]{YC: #1}\xspace}
    \newcommand{\yuxinil}[1]{\textbf{\textcolor{blue}{[YC: #1]}}}
    \newcommand{\rebuttal}[1]{\textbf{\textcolor{red}{#1}}}
    \newcommand{\revise}[1]{{\textcolor{magenta}{#1}}}
    \newcommand{\tony}[1]{\todo[inline,color=green!40]{TN: #1}\xspace}
    \newcommand{\fengxue}[1]{\todo[inline,color=red!40]{FZ: #1}\xspace}
    \newcommand{\TBD}[1]{{{[{\bf TD:} \color{purple}#1]}{}}}
\fi

% COnstrained Bo with Adapative active Learning of uknown constrainTs (ICLR)
% Constrained Bo with Adapative Learning of Region of Interest (ICML) -- 
% COnstrained Bo thRough Adaptive Region of interest Acquisitions (ICML) -- COBRA
% COnstrained Bo through Adaptive Region of interest Acquisitions (ICML) -- COBRA
% \renewcommand{\algname}{\textsc{COBALt}\xspace}
% \renewcommand{\algname}{\textsc{COBRAs}\xspace}
\renewcommand{\algname}{\textsc{COBAR}\xspace}
% \renewcommand{\algname}{\textsc{BALLET}\xspace}
% \renewcommand{\acqname}{\textsc{EILCB}\xspace}
% \renewcommand{\algname}{\textsc{BOALSE}\xspace}

\newcommand{\UCB}{\textsc{UCB}\xspace}
\newcommand{\TS}{\textsc{TS}\xspace}

\newcommand{\SE}{\textsc{SE}\xspace}
\newcommand{\Linear}{\textsc{Linear}\xspace}
\newcommand{\col}{\textrm{col}\xspace}


% global notations
\newcommand{\instance}[0]{\ensuremath{\mathbf{x}}}
% \newcommand{\kSpace}[0]{\ensuremath{\mathbf{K}}}
\newcommand{\conIdx}[0]{\ensuremath{m}}
\newcommand{\conSpace}[0]{\ensuremath{\mathbf{M}}}
\newcommand{\conNum}[0]{\ensuremath{{M}}}
\newcommand{\cFunc}[0]{\ensuremath{\mathcal{C}}}
\newcommand{\latentrep}[0]{\ensuremath{\mathbf{z}}}
\newcommand{\GramMat}[0]{\ensuremath{\mathbf{K}}}
% \newcommand{\Selected}[0]{\ensuremath{\mathbf{A}}}
\newcommand{\Selected}[0]{\ensuremath{\mathbf{S}}}
% \newcommand{\DataSet}[0]{\ensuremath{\mathbf{D}}}
\newcommand{\LatentRepSet}[0]{\ensuremath{\mathbf{Z}}}
\newcommand{\featureExtractor}[0]{q}
\newcommand{\searchSpace}[0]{\ensuremath{\mathbf{X}}}
\newcommand{\roi}[0]{{\ensuremath{\hat{\searchSpace}}}}
\newcommand{\LCB}[0]{{\ensuremath{\textrm{LCB}}}}
\newcommand{\CI}[0]{{\ensuremath{\textrm{CI}}}}
\newcommand{\UCBit}[0]{{\ensuremath{\textrm{UCB}}}\xspace}
\newcommand{\acqF}[0]{{\ensuremath{\alpha_{f, t}}}}
\newcommand{\acqC}[0]{{\ensuremath{\alpha_{\cFunc_\conIdx, t}}}}
% \newcommand{\acq}[0]{{\ensuremath{\alpha_{\hat{f}}}}}
% \newcommand{\acqUCB}[0]{{\ensuremath{\widehat{\textrm{UCB}}}}}
% \newcommand{\acqLCB}[0]{{\ensuremath{\widehat{\textrm{LCB}}}}}
% \newcommand{\acqUCBt}[0]{{\ensuremath{\widetilde{\textrm{UCB}}}}}
% \newcommand{\acqLCBt}[0]{{\ensuremath{\widetilde{\textrm{LCB}}}}}
\newcommand{\acqCI}[0]{{\ensuremath{\widehat{\textrm{CI}} }}}
\newcommand{\discreteSet}[0]{\ensuremath{\Tilde{D}}}
\newcommand{\actionSet}[0]{\ensuremath{\textit{A}}}
\newcommand{\maxInfoDe}[0]{\ensuremath{\widetilde{\maxInfo}}}

\newcommand{\globalf}{\ensuremath{f}}
\newcommand{\roif}{\ensuremath{\hat{f}}}
\newcommand{\acqRoici}{{\ensuremath{\alpha_{\hat{f},\textsc{RCI}}}}}
\newcommand{\acqTs}{{\ensuremath{\alpha_{\hat{f},\textsc{TS}}}}}

\newcommand{\roiRangeAt}[1]{\ensuremath{\Delta_{\textsc{roi},#1}}}

\newcommand{\interCI}{\textsc{\algname-ICI}\xspace}
\newcommand{\interUCB}{\textsc{\algname-IUCB}\xspace}
\newcommand{\roiTS}{\textsc{\algname-RTS}\xspace}
\newcommand{\roiCI}{\textsc{\algname-RCI}\xspace}

\newcommand{\DKBO}{\textsc{DKBO-AE}\xspace}
\newcommand{\LAMCTS}{\textsc{LA-MCTS}\xspace}
\newcommand{\turbo}{\textsc{TuRBO}\xspace}
\newcommand{\DAGname}{\textsc{Half Budget LSE-BO}\xspace}
\newcommand{\CAGname}{\textsc{ConBOTAC}\xspace}
\newcommand{\UCBextension}{\textsc{cUCB-UCB}\xspace}

\newcommand{\reward}[0]{\ensuremath{r}}
\newcommand{\regret}[0]{\ensuremath{\mathbf{R}}}
\newcommand{\GP}[0]{\ensuremath{\mathcal{GP}}\xspace}
\newcommand{\discreteROI}[0]{\ensuremath{\discreteSet_{\roi_t}}}
% Constrained Bayesian Optimization through active filtering
