1. Short title This Act may be cited as the Reforming Alternatives to Incarceration and Sentencing to Establish a Better Path for Youth Act of 2017 or the RAISE Act of 2017 . 2. Safety valve for nonviolent youth Section 3553 of title 18, United States Code, is amended by adding at the end the following: (g) Authority To Impose a sentence below a statutory minimum for youth (1) General rule Notwithstanding any provision of law other than this subsection, when sentencing a youth for a nonviolent offense, the court may impose a sentence below a statutory minimum if, after considering the factors set forth in subsection (a), the court finds— (A) substantial and compelling reasons on the record that, giving due regard to the nature of the crime, the history and characteristics of the youth, and the youth’s chances of successful rehabilitation, the mandatory minimum sentence would result in substantial injustice to the youth; and (B) imposition of the mandatory minimum sentence is not necessary for the protection of the public. (2) Court to give parties notice Before imposing a sentence under paragraph (1), the court shall give the parties reasonable notice of the court’s intent to do so and an opportunity to respond. (3) Statement in writing of factors The court shall state, in the written statement of reasons, the factors under subsection (a) that require imposition of a sentence below the statutory minimum. (4) Appeal rights not limited This subsection does not limit any right to appeal that would otherwise exist in its absence. (5) Definitions In this subsection— (A) the term youth means an individual who was 21 years of age or younger at the time of the criminal offense for which the individual is being sentenced; and (B) the term nonviolent offense means a Federal criminal offense that is not— (i) a crime of violence