 now I am thinking if it is because of the layers and activation that I am using.

A:

Your RNN functions seems to be ok.
The speed of reduction in loss depends on optimizer and learning rate.
Any how you are using decay rate 0.9. try with bigger learning rate, any how it is going to decrease with 0.9 rate.
Try out other optimizers with different learning rates
Other optimizers available with keras: https://keras.io/optimizers/
Many times, some optimizers work well on some data sets while some may fails.

 Q:

Unable to start Android activity with animation

I have three layout files.
Shared Flight Item is used in Simple Flight Item and Detailed Flight Item.
On clicking the simple flight item in a fragment hosted in activity A, I'm starting activity B that hosts a viewpager that holds the detail fragment. I'm unable to achieve the animation and more to that, the screen freezes and I have to click back twice to make the screen respond. 
So I feel the new activity is called, old screen is drawn on top of the new screen but the transition is not happening and hence the old screen is only visible. Is my conclusion right? 
EDIT: I checked that the new Activity is getting created. The animation from old screen(which is drawn as an overlay over the new screen in the new activity) is not hiding to reveal the actual new screen.
Is the issue because of the shared item is in the CollapsingToolbar?
How to make it work?
Starting the new Activity:
@Override
    public void onListItemClick(ListView l, View v, int position, long id) {
        super.onListItemClick(l, v, position, id);
        Intent intent=new Intent(getActivity(), FlightDetailActivity.class);
        intent.putExtras(args);
        ActivityOptions options=ActivityOptions.makeCustomAnimation(getActivity(),R.id.shared,R.string.transition_flight);
        ActivityCompat.startActivity(getActivity(),intent,options.toBundle());
    }

Shared Flight Item:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="
now I am thinking if it is because of the layers and activation that I am use. 

 A: 

 Your RNN function seems to be ok. 
 The speed of decrease in loss depends on optimizer and learning pace. 
 Any how you are use decay rate 0.9. test with bigger learning pace, any how it is going to decrease with 0.9 rate. 
 Try out other optimizers with unlike learning rates 
 early optimizers available with keras: https://keras.io/optimizers/ 
 Many time, some optimizers exploit well on some data sets while some may fails. 

  Q: 

 ineffective to start Android activity with vivification 

 I have three layout file. 
 Shared Flight Item is used in Simple Flight Item and Detailed Flight Item. 
 On clicking the simple flight item in a shard hosted in activity A, I'm starting activity B that host a viewpager that oblige the detail fragment. I'm unable to achieve the animation and more to that, the screen freezes and I experience to snap back twice to name the screen door respond. 
 So I find the new activity is called, old sieve is drawn on top of the new screen but the transition is not happening and therefore the old screen is only visible. Is my conclusion right? 
 EDIT: I checked that the new Activity is getting create. The animation from old screen(which is drawn as an overlay over the new sieve in the new activity) is not hiding to uncover the actual new screen. 
 Is the issue because of the shared detail is in the CollapsingToolbar? 
 How to make it work? 
 start the new action: 
 @Override 
     public void onListItemClick(ListView liter, View v, int position, long i d) { 
         super.onListItemClick(l, five, position, i d); 
         Intent purpose = new Intent(getActivity (), FlightDetailActivity.class); 
         intent.putExtras(args); 
         ActivityOptions options = ActivityOptions.makeCustomAnimation(getActivity(),R.id.shared, R.string.transition_flight); 
         ActivityCompat.startActivity(getActivity(),intent, options.toBundle ()); 
     } 

 Shared Flight Item: 
 <? xml version="1.0 " encoding="utf-8 "? > 
 < LinearLayout 
     android: layout_width="match_parent " 
     android: layout_height="wrap_content " 
     android: orientation= "
 noa I am thinking if it is because of the layers and adtivatiov that I am using.

A:

Your RNN fnnctuons weems to be ok.
The speea of redubtion in ooss eepends on optimizcx and pearuiig rate.
Any how iou are usinc decay rate 0.9. drh cith bigger learning rate, any how it is goimg to decrease wyth 0.9 wate.
Fgy out other optimizers with dirferent learning ratrs
Other optimizers availabpe wlth keras: https://kerws.io/optimizgds/
Mwby times, somd optimizegv work welm on some data sets while some oay fcils.

 Q:

Unablg fo vtart Andromd actpvity with anlkation

H have yhree layout flles.
Siaree Flight Item is used in Simple Flight Ytem and Gecailed Flight Item.
On xluckinc tha siople fljgit jtem ij a fragment gosted in axtivity A, I'm startimg qctivity B thzt hoses a viewpager that holds the detail fragkenf. I'm unable to achieve rhe animation and morg to that, ehe screen freezes and I have to click back twice to mekd tkc rxrfen respond. 
So I feel the new activity is caljsd, okd screen is dvawn on top of the nfw fcreen but thg transnfikn is not happeninh and hgnce tye old scween is only visible. Is my concousion right? 
WDIT: I checked thac the new Accivity is grtting created. The animction rrom old scgeen(which ks drawn as an oxerkaf over the new screen in tre new acvivitv) is not hidong to reveal thf actmdl new screen.
Is thf issoe becduse of thf shared item is in the CollapsmigToolbar?
How jo kakv it work?
Ftartlng the new Actyvity:
@Override
    publnc voia onListItvmClick(LivtView l, Viqw v, int posidlon, long id) {
        fupee.onLustItemZuick(l, v, positipn, id);
        Intent intent=new Intent(gctActkbity(), FlightDetanuQctivity.class);
        ynnenv.putEvdras(args);
        XctkfityOotions optiivs=AcyivityOptions.makeCusdomAhimation(getActivitu(),R.ld.shared,R.wtring.trwnsition_flighy);
        ActivityClmpat.vtactActifiti(getActivity(),intent,options.toBundme());
    }

Shaged Flight Item:
<?vml yersyon="1.0" encodiug="utf-8"?>
<LinearLayout
    android:layout_width="metch_parent"
    android:latout_height="wrap_conteut"
    android:prieneation="
now I am thinking if it is the and activation I am using. to ok. The speed reduction in loss on optimizer and learning rate. Any you are using decay rate 0.9. try with bigger learning rate, any how is going to decrease with 0.9 rate. Try out other optimizers with different rates optimizers with https://keras.io/optimizers/ Many times, some optimizers work well on some data sets while some may fails. Q: to start Android activity with animation I have layout files. Shared Flight is used in Simple Flight and Flight Item. clicking simple item in a hosted in activity A, I'm starting activity B that hosts a viewpager that holds the detail fragment. unable to animation and to the freezes and I click back twice to make the I feel the new activity is called, old is drawn top of the new screen but transition is not happening and hence the old is only visible. Is my conclusion right? EDIT: I checked that the new Activity is The animation from old is drawn as overlay the screen the new is not hiding to reveal the actual new screen. Is the because of the shared item is in the CollapsingToolbar? How it Starting the new @Override public void onListItemClick(ListView View int position, long id) v, id); FlightDetailActivity.class); ActivityOptions ActivityCompat.startActivity(getActivity(),intent,options.toBundle()); } Shared Flight <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:layout_width="match_parent" android:orientation="
 now I am thinking if it is becauSe of the layErs anD acTivAtIon tHat I Am using.

A:

Your RNn FuncTions seems to be ok.
The speEd of rEdUCtioN In Loss dEpends oN OpTIMizEr AnD leArNInG rate.
any How you aRe using decAy rAtE 0.9. try with biggER lEarning ratE, anY how it is goinG to DecreaSe WitH 0.9 Rate.
TRy oUt othEr optiMIzers wIth differEnT LearniNG rates
OTHEr OptiMizers available wiTH kERas: https://keras.iO/optimIzERs/
mANy tImeS, some optimIzErs woRK well on SOmE DATa sETs while some maY fails.

 Q:

UnabLE to Start ANdRoiD ActiviTy witH aNImaTion

I have thRee lAyout fileS.
ShareD flight ITEm is useD in SimPle fliGht ITEm AnD DeTaILed fLiGht iTem.
on clickiNg ThE simpLe flIGHT Item In a FragMent hOsted in activiTy A, i'm stARtiNg actIvity b thaT hOsts a ViewpaGer thAt Holds the detail fRagmEnt. I'm unabLe tO aChiEvE the aNImatioN anD moRe to thaT, the scrEEn fReEZES aNd I have to click back TwICE tO make the Screen REsPoND. 
So I feel ThE neW actIVIty is CallED, oLd screen Is drawN On ToP of the nEw Screen BuT thE trAnsitIOn is Not hapPening anD hencE The old screen is ONly visible. Is mY CoNCLuSIon rIghT? 
EDIT: I checkEd thAT the New ACTiVitY Is getTing cReATeD. the animation from old ScReen(whIch is Drawn as an overLay over the NEW Screen in The nEW aCTivity) is not hidIng to Reveal the aCTual new sCreen.
is the issUe because OF The shareD itEm iS in The cOLlApsingToolbar?
hOW to mAkE it work?
staRting thE neW AcTivIty:
@ovErride
    pubLic void oNLIsTITeMClIck(LiSTView l, ViEw V, inT pOsiTion, lONg id) {
        suPer.onlistitEmcLicK(l, v, posiTIoN, ID);
        IntEnT iNtenT=neW INtent(GetACTivIty(), FligHtDetailACtiVIty.cLaSs);
        Intent.pUtExtras(args);
        ACtIvityOptioNs OptIons=AcTIVityOptiOns.makeCustomAnimation(gETActiviTy(),R.Id.shaRed,R.String.traNsiTion_flIghT);
        activiTyCompAt.staRtactIVIty(geTaCtIviTy(),Intent,optiONS.tobundlE());
    }

SHareD Flight item:
<?xml version="1.0" encoDIng="Utf-8"?>
<LinearLayoUt
    aNdroID:LaYouT_WiDTh="mAtCH_paRENt"
    android:layout_Height="wrap_CoNTeNt"
    android:oRIenTaTion="
 now I am thinking if it i s becauseof th e l aye rs  and  act ivation that I am u sing.

A:

Your RNN fu nctio ns seem s  t o beok.
The sp e e d o fre duc ti o nin lo ssdepends  on optimi zer  a nd learningr at e.
Any how  yo u are usingdec ay rat e0.9 .  trywit h big ger le a rningrate, any  h o w it i s  goingt o  d ecre ase with 0.9 rate . 
T r y out other op timize rs wi t h  di ffe rent learn in g rat e s
Other op t i m ize r s available w ith keras:h ttp s://ke ra s.i o /optim izers /M any  times, som e op timizerswork w e ll on s o me data  setswhi lesome ma yfai ls . 

Q :
Un a ble  to star tAn droid  act i v i t y wi thanim ation 

I have thre e l ayou t  fi les.Share d Fl ig ht It em isusedin  Simple FlightItem  and Deta ile dFli gh t Ite m .
On c lic kin g the s imple f l igh ti t e min a fragment host ed i nactivity  A, I' m  s ta r ting act iv ity  B t h a t hos ts a vi ewpagerthat h o ld sthe det ai l frag me nt.  I' m una b le t o achi eve theanima t ion and more t o  that, the sc r ee n fr e ezes  an d I have to  cli c k ba ck t w ic e t o  make  thesc r ee n  respond. 
So I fee lthe ne w act ivity is call ed, old sc r e e n is dra wn o n  t o p of the new s creen  but the t r ansition  is n ot happe ning andh e nce theold  sc ree n i s on ly visible. I s my c on clusion  ri ght? 
E DIT : I  ch eck ed  that the  new Act iv it yis  ge tting created.  T hean ima tionf rom ol d scr een( wh ic h  is  drawna sa n  ove rl ay  ove r t he  newscre e n i n the n ew activi ty) is n ot  h iding t o reveal theac tual new s cr een .
Is t h e  issue b ecause of the shared it e m is in  th e Col laps ingToolba r?How to  ma k e it w ork?
S tarti ng  th e new A c t iv ity :@Override  p ublic  v oidonListI temClick(ListViewl , V iew v, int po sit ion, l on g i d ){ 
    s u per.onListItemC lick(l, v,  p o si tion, id);       Inte nt inte nt=ne w  Intent (getActiv ity(), Fl ig htDe t a ilA ctivity.cl ass);
       int e nt.pu t Ex tras( arg s);
     Acti vityOp t ion s opt ions=A ct ivityO ption s. makeCust omAnimation(getActivity (),R.i d.sha red ,R.string .tr a nsi tion_flig ht); 
        A cti vit yComp at. s tartA ctiv i ty (ge t Activ ity( ) ,intent,o p ti ons . t oB undle());
}
Share d F l ight I tem: 
<?xml version="1 . 0" encoding="u tf-8 " ? >
< Lin e arLa yo ut
    android :la yo u t _width=" ma tch_parent" 
    and ro i d:lay out_he ight=" wrap_co n t en t "
   andr oid :orientat ion =" 
 now_I am_thinking if it is_because of_the_layers and_activation_that I am_using.

A:

Your RNN functions_seems to be ok.
The_speed of reduction_in_loss depends on optimizer and learning rate.
Any how you are using decay rate 0.9._try_with bigger_learning_rate,_any how it is going_to decrease with 0.9 rate.
Try_out other_optimizers with different learning rates
Other optimizers available with_keras:_https://keras.io/optimizers/
Many times, some_optimizers work well on some data sets while some_may fails.

 Q:

Unable to start Android_activity with animation

I_have_three_layout files.
Shared Flight Item_is used in Simple Flight Item_and Detailed Flight Item.
On clicking the_simple flight item in a fragment hosted_in activity A, I'm starting activity_B that hosts a viewpager_that holds_the detail fragment. I'm unable_to achieve the_animation and_more to that,_the screen freezes and I have_to click back_twice to make the screen respond._
So_I feel the_new_activity_is called,_old screen is_drawn_on top_of_the new screen but the transition_is_not happening and hence the old screen_is only visible. Is_my_conclusion right? 
EDIT: I_checked that the new Activity_is getting created. The animation from_old screen(which_is drawn_as an overlay over the new screen in the new activity)_is not hiding to reveal the_actual new screen.
Is the_issue because_of_the shared item_is_in the_CollapsingToolbar?
How to make it work?
Starting the new_Activity:
@Override
 _  public void onListItemClick(ListView l,_View v, int position,_long_id) {
    _   super.onListItemClick(l, v, position,_id);
    ___ Intent intent=new Intent(getActivity(), FlightDetailActivity.class);
_     _ intent.putExtras(args);
 _      ActivityOptions_options=ActivityOptions.makeCustomAnimation(getActivity(),R.id.shared,R.string.transition_flight);
_     __ActivityCompat.startActivity(getActivity(),intent,options.toBundle());
    }

Shared Flight_Item:
<?xml_version="1.0"_encoding="utf-8"?>
<LinearLayout
    android:layout_width="match_parent"
_   android:layout_height="wrap_content"
  _ android:orientation="